Created
November 9, 2013 06:21
-
-
Save shohey1226/7382381 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
describe('Testing Services', function () { | |
// Required setup for AngualarJS | |
beforeEach(module('frontieApp')); | |
var myOrder; | |
beforeEach(inject(function(_myOrder_){ | |
myOrder = _myOrder_; | |
})); | |
it('Test myOrder set/getStock', function () { | |
myOrder.setStock('Sony'); | |
dump(myOrder.getOrder()); // you can use dump funciton to ouput | |
// console.log(myOrder.getOrder()); console.log can be used | |
expect(myOrder.getStock()).toBe('Sony'); | |
}); | |
it('Test myOrder set/getPurchase', function () { | |
myOrder.setPurchasePrice(500); | |
dump(myOrder.getOrder()); // you can use dump funciton to ouput | |
expect(myOrder.getPurchasePrice()).toBe(500); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment