Skip to content

Commit

Permalink
feat: 依赖注入模块精简
Browse files Browse the repository at this point in the history
  • Loading branch information
chaiyanchen committed Sep 11, 2020
1 parent a067ede commit 3057c66
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/di/value-provider-impl.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { createValueProvider } from '../../src/di/value-provider-impl'
import { createValueProvider } from '../../src/di/value-provider-impl';

describe('ValueProviderImpl', () => {
describe('#create', () => {
it('直接返回固定对象', () => {
const P = createValueProvider('foo')
expect(new P().create()).toEqual('foo')
})
})
})
describe('#create', () => {
it('直接返回固定对象', () => {
const P = createValueProvider('foo');
expect(new P().create()).toEqual('foo');
});
});
});

0 comments on commit 3057c66

Please sign in to comment.