Skip to content

Commit e01bc44

Browse files
committed
tests(LoadingButton): update tests
1 parent 57dcef7 commit e01bc44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/tests/unit/loading-button.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,10 @@ describe('LoadingButton', () => {
295295
const loadingButton = new LoadingButton(button)
296296

297297
expect(Data.get(button, 'coreui.loading-button')).toEqual(loadingButton)
298-
expect(() => {
299-
loadingButton.dispose()
300-
}).toThrow() // Will throw because Data.removeData doesn't exist
301-
// The actual implementation has a bug - it should call Data.remove instead
298+
299+
loadingButton.dispose()
300+
301+
expect(Data.get(button, 'coreui.loading-button')).toBeNull()
302302
})
303303
})
304304

0 commit comments

Comments
 (0)