Skip to content

Commit 5b46dc7

Browse files
authored
test(store): add export contract tests (#95)
1 parent 9d1d6db commit 5b46dc7

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

packages/store/src/exports.spec.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import {
2+
DevToolsExtension,
3+
dispatch,
4+
enableFractalReducers,
5+
NgRedux,
6+
NgReduxModule,
7+
select,
8+
select$,
9+
WithSubStore,
10+
} from './index';
11+
12+
describe('The @angular-redux/store package exports', () => {
13+
it('should contain the NgReduxModule class', () => {
14+
expect(NgReduxModule).toBeDefined();
15+
});
16+
17+
it('should contain the NgRedux class', () => {
18+
expect(NgRedux).toBeDefined();
19+
});
20+
21+
it('should contain the DevToolsExtension class', () => {
22+
expect(DevToolsExtension).toBeDefined();
23+
});
24+
25+
it('should contain the enableFractalReducers function', () => {
26+
expect(enableFractalReducers).toBeDefined();
27+
});
28+
29+
it('should contain the select property decorator', () => {
30+
expect(select).toBeDefined();
31+
});
32+
33+
it('should contain the select$ property decorator', () => {
34+
expect(select$).toBeDefined();
35+
});
36+
37+
it('should contain the dispatch property decorator', () => {
38+
expect(dispatch).toBeDefined();
39+
});
40+
41+
it('should contain the WithSubStore class decorator', () => {
42+
expect(WithSubStore).toBeDefined();
43+
});
44+
});

0 commit comments

Comments
 (0)