diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-11-16 18:23:09 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-11-29 21:58:26 +0300 |
commit | 51a208f119522f8618801a6e61ff8d47cf89d4cf (patch) | |
tree | b36778f37d9e3d90bbf42474a1d9d18b20ada494 /js/tests/unit/scrollspy.spec.js | |
parent | 9f6b342dc710e4334b37ded90136efa1127a47cd (diff) |
Switch to Jasmine's `toBeInstanceOf` matcher
Diffstat (limited to 'js/tests/unit/scrollspy.spec.js')
-rw-r--r-- | js/tests/unit/scrollspy.spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/unit/scrollspy.spec.js b/js/tests/unit/scrollspy.spec.js index 303a336f44..45de56fbe5 100644 --- a/js/tests/unit/scrollspy.spec.js +++ b/js/tests/unit/scrollspy.spec.js @@ -641,7 +641,7 @@ describe('ScrollSpy', () => { const scrollSpy = new ScrollSpy(div) expect(ScrollSpy.getInstance(div)).toEqual(scrollSpy) - expect(ScrollSpy.getInstance(div) instanceof ScrollSpy).toEqual(true) + expect(ScrollSpy.getInstance(div)).toBeInstanceOf(ScrollSpy) }) it('should return null if there is no instance', () => { |