diff options
| author | XhmikosR <[email protected]> | 2020-11-16 17:23:09 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-11-29 20:58:26 +0200 |
| commit | 51a208f119522f8618801a6e61ff8d47cf89d4cf (patch) | |
| tree | b36778f37d9e3d90bbf42474a1d9d18b20ada494 /js/tests/unit/button.spec.js | |
| parent | 9f6b342dc710e4334b37ded90136efa1127a47cd (diff) | |
| download | bootstrap-51a208f119522f8618801a6e61ff8d47cf89d4cf.tar.xz bootstrap-51a208f119522f8618801a6e61ff8d47cf89d4cf.zip | |
Switch to Jasmine's `toBeInstanceOf` matcher
Diffstat (limited to 'js/tests/unit/button.spec.js')
| -rw-r--r-- | js/tests/unit/button.spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/unit/button.spec.js b/js/tests/unit/button.spec.js index e7f6566ea..51aa73774 100644 --- a/js/tests/unit/button.spec.js +++ b/js/tests/unit/button.spec.js @@ -137,7 +137,7 @@ describe('Button', () => { const button = new Button(div) expect(Button.getInstance(div)).toEqual(button) - expect(Button.getInstance(div) instanceof Button).toEqual(true) + expect(Button.getInstance(div)).toBeInstanceOf(Button) }) it('should return null when there is no button instance', () => { |
