<commit_before>'use strict';

describe('service', function() {

  // load modules
  beforeEach(module('phonecatApp'));

  // Test service availability
  it('check the existence of Phone factory', inject(function(Phone) {
      expect(Phone).toBeDefined();
    }));
});<commit_msg>Removed no usable properties in mockmodel.<commit_after>'use strict';

describe('service', function() {

  // load modules
  beforeEach(module('phonecatApp'));

    var phone, cart;
    var mockItems =  [
        {
            "age": 7,
            "price": 234,
            "carrier": "Cellular South",
            "id": "lg-axis",
            "imageUrl": "img/phones/lg-axis.0.jpg",
            "name": "LG Axis",
            "snippet": "Android Powered, Google Maps Navigation, 5 Customizable Home Screens"
        },
        {
            "age": 3,
            "price": 234,
            "id": "dell-streak-7",
            "imageUrl": "img/phones/dell-streak-7.0.jpg",
            "name": "<NAME> 7",
            "snippet": "Introducing Dell\u2122 Streak 7. Share photos, videos and movies together. It\u2019s small enough to carry around, big enough to gather around."
        }
    ];
    beforeEach(inject(function (Phone, Cart) {
      phone = Phone;
      cart = Cart;
    }));

    it('check the existence of Phone factory', function() {
        expect(phone).toBeDefined();
    });

    it('check the existence of Cart factory', function() {
        expect(cart).toBeDefined();
    });
    
    it('When adding to phones to Cart price should be updated', function() {
       //TODO
       cart.addItem(mockItems[0]);
        console.log("", cart.totalAmount);
        
       
    });

});
{'fraction_non_alphanumeric': 0.14711137581893985, 'fraction_numerical': 0.01429422275163788, 'mean_word_length': 2.2, 'pattern_counts': {'":': 13, '<': 4, '<?xml version=': 0, '>': 4, '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': '3276759', 'n_tokens_mistral': 511, 'n_tokens_neox': 482, 'n_words': 130}