Skip to content

Commit

Permalink
injector: show tests in service
Browse files Browse the repository at this point in the history
  • Loading branch information
codyjdalton committed May 23, 2018
1 parent d4f3f13 commit f4de93a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/modules/services/some.service.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* some.service
*/
import { expect } from 'chai';
import { Injector } from 'super-injector';

import { SomeService } from './some.service';

describe('Service: SomeService', () => {

let someService: SomeService;

beforeEach(() => {
someService = Injector.resolve(SomeService);
});

it('should default message to hello', () => {

expect(someService.message).to.equal('hello');
});
});

0 comments on commit f4de93a

Please sign in to comment.