Skip to content

Commit 6c32b3c

Browse files
committed
test(warn): extend camelCase prop and event tests
Test for correct order of what is expected and what was passed.
1 parent 8c1faf9 commit 6c32b3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/unit/features/component/component.spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ describe('Component', () => {
289289
}
290290
}
291291
}).$mount()
292+
expect('"somecollection" is passed').toHaveBeenTipped()
293+
expect('declared prop name is "someCollection"').toHaveBeenTipped()
292294
expect(
293295
'You should probably use "some-collection" instead of "someCollection".'
294296
).toHaveBeenTipped()
@@ -306,6 +308,8 @@ describe('Component', () => {
306308
}
307309
}
308310
}).$mount()
311+
expect('"fooBar" is emitted').toHaveBeenTipped()
312+
expect('handler is registered for "foobar"').toHaveBeenTipped()
309313
expect(
310314
'You should probably use "foo-bar" instead of "fooBar".'
311315
).toHaveBeenTipped()

0 commit comments

Comments
 (0)