Skip to content

Commit a9e2ff1

Browse files
author
Hauke Broer
committed
check if token is exported
1 parent 45dba81 commit a9e2ff1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import {Container, createDecorator, createResolve, createWire, NOCACHE} from "./";
1+
import {Container, token, createDecorator, createResolve, createWire, NOCACHE} from "./";
22
import {Container as ContainerOriginal} from "./ioc/container";
3+
import {token as tokenOriginal} from "./ioc/token";
34
import {createDecorator as createDecoratorOriginal} from "./ioc/decorator";
45
import {createWire as createWireOriginal} from "./ioc/wire";
56
import {createResolve as createResolveOriginal} from "./ioc/resolve";
@@ -10,6 +11,10 @@ describe("Module", () => {
1011
expect(Container).toBe(ContainerOriginal);
1112
});
1213

14+
test('should export "token" function', () => {
15+
expect(token).toBe(tokenOriginal);
16+
});
17+
1318
test('should export "createDecorator" function', () => {
1419
expect(createDecorator).toBe(createDecoratorOriginal);
1520
});

0 commit comments

Comments
 (0)