Skip to content

Commit f46d6b7

Browse files
export existence test for widgets/index
1 parent b89d654 commit f46d6b7

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

test/unit/widgets/index.test.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import * as DragAndDrop from '../../../src/widgets/dragAndDrop'
2+
import * as Error from '../../../src/widgets/error'
3+
import * as Buttons from '../../../src/widgets/buttons'
4+
import * as Forms from '../../../src/widgets/forms'
5+
import * as PeoplePicker from '../../../src/widgets/peoplePicker'
6+
import * as Index from '../../../src/widgets/index'
7+
8+
describe('index', () => {
9+
it('contains all exports from DragAndDrop', () => {
10+
for (let k in DragAndDrop) {
11+
if (k !== 'default') {
12+
expect(Index[k]).toEqual(DragAndDrop[k])
13+
}
14+
}
15+
})
16+
it('contains all exports from Error', () => {
17+
for (let k in Error) {
18+
if (k !== 'default') {
19+
expect(Index[k]).toEqual(Error[k])
20+
}
21+
}
22+
})
23+
it('contains all exports from Buttons', () => {
24+
for (let k in Buttons) {
25+
if (k !== 'default') {
26+
expect(Index[k]).toEqual(Buttons[k])
27+
}
28+
}
29+
})
30+
it('contains all exports from Forms', () => {
31+
for (let k in Forms) {
32+
if (k !== 'default') {
33+
expect(Index[k]).toEqual(Forms[k])
34+
}
35+
}
36+
})
37+
it('contains all exports from PeoplePicker', () => {
38+
for (let k in PeoplePicker) {
39+
if (k !== 'default') {
40+
expect(Index[k]).toEqual(PeoplePicker[k])
41+
}
42+
}
43+
})
44+
})

0 commit comments

Comments
 (0)