lithium-sdk
Version:
### Lithium Developer Community Area
36 lines (26 loc) • 782 B
JavaScript
;
describe('<%= name %>', function () {
var <%= serviceName %>;
beforeEach(function () {
module('li.<%= type %>s.<%= subModule %>.<%= name %>');
/*
Uncomment this to mock factories.
You may delete this comment block if you do not need to create mocks here.
module(function ($provide) {
$provide.factory('myFactory', function () {
return {
myFactoryMethod: function () {
return 'my factory method called';
}
};
});
});
*/
inject(function (_<%= serviceName %>_) {
<%= serviceName %> = _<%= serviceName %>_;
});
});
it('should test method', function () {
expect(<%= serviceName %>.dummyMethod({a: 'a'})).toBe(JSON.stringify({a: 'a'}));
});
});