We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8963c55 commit 3cc8e02Copy full SHA for 3cc8e02
packages/runtime-core/__tests__/helpers/createSlots.spec.ts
@@ -26,6 +26,14 @@ describe('createSlot', () => {
26
expect(ret.key).toBe('1')
27
})
28
29
+ it('should check nullability', () => {
30
+ const slot = (() => {}) as Slot
31
+ const dynamicSlot = [{ name: 'descriptor', fn: slot, key: '1' }]
32
+
33
+ const actual = createSlots(record, dynamicSlot)
34
+ expect(actual).toHaveProperty('descriptor')
35
+ })
36
37
it('should add all slots to the record', () => {
38
const dynamicSlot = [
39
{ name: 'descriptor', fn: slot },
0 commit comments