<commit_before>describe('Features', function() {

  var till;
  var order;
  var shopDetails;

  beforeEach(function() {
    till = new Till();
    order = new Order();
    shopDetails = loadDetailsSpec();
    till.menu = shopDetails[0]['prices'][0];
  });

  describe('till can display total of order', function() {
    it('1 x Cafe Latte', function() {
      order.addItem('Cafe Latte');
      expect(till.displayTotal(order)).toEqual(4.75);
    });

    it('1 x Cafe Latte; 1 x Cappucino', function() {
      addItems(order, ['Cafe Latte', 'Cappucino']);
      expect(till.displayTotal(order)).toEqual(8.60);
    });

    it('2 x Cafe Lattes; 1 x Cappucino', function() {
      addItems(order, ['Cafe Latte', 'Cafe Latte', 'Cappucino']);
      expect(till.displayTotal(order)).toEqual(13.35);<commit_msg>Tests: Travis CI using loadDetails function in beforeEach in FeatureSpec.js<commit_after>describe('Features', function() {

  var till;
  var order;
  var shopDetails;

  beforeEach(function(done) {
    till = new Till();
    order = new Order;
    till.loadDetails()
    .done(function() {
      done();
    });
  });

  describe('till can display total of order', function() {
    it('1 x Cafe Latte', function() {
      order.addItem('Cafe Latte');
      expect(till.displayTotal(order)).toEqual(4.75);
    });

    it('1 x Cafe Latte; 1 x Cappucino', function() {
      addItems(order, ['Cafe Latte', 'Cappucino']);
      expect(till.displayTotal(order)).toEqual(8.60);
    });

    it('2 x Cafe Lattes; 1 x Cappucino', function() {
      addItems(order, ['Cafe Latte', 'Cafe Latte', 'Cappucino']);
      expect(till.displayTotal(order)).toEqual(13.35);
{'fraction_non_alphanumeric': 0.16766826923076922, 'fraction_numerical': 0.019230769230769232, 'mean_word_length': 3.5121951219512195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5481748', 'n_tokens_mistral': 589, 'n_tokens_neox': 557, 'n_words': 131}