This repository was archived by the owner on Mar 26, 2018. It is now read-only.
This repository was archived by the owner on Mar 26, 2018. It is now read-only.
Test fails for service generator #338
Closed
Description
If you want to create a service with e.g $ yo angular:service chineseRemainderTheorem
a test file gets generated, in my case this one:
'use strict';
describe('Service: chineseRemainderTheorem', function () {
// load the service's module
beforeEach(module('algorithmsApp'));
// instantiate service
var chineseRemainderTheorem;
beforeEach(inject(function (_chineseRemainderTheorem_) {
chineseRemainderTheorem = _chineseRemainderTheorem_;
}));
it('should do something', function () {
expect(!!chineseRemainderTheorem).toBe(true);
});
});
The injection doesn't work out of the box because of _chineseRemainderTheorem_
so the tests fail
Metadata
Metadata
Assignees
Labels
No labels