diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-10-14 18:16:54 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-12-01 15:30:49 +0300 |
commit | eb54e1a1ce9d0080a65eb7a8532503a399e506ee (patch) | |
tree | 6a7af2c0facf6211ed673d5fabbf21d7bf834d9e /js/tests/README.md | |
parent | 5739bf76371cb7be36598ad201b587167349681b (diff) |
tests: tweak Jasmine's matchers usage
Use:
* toBeNull
* toEqual
* toBeTrue
* toBeFalse
* toHaveSize
* toHaveClass
Diffstat (limited to 'js/tests/README.md')
-rw-r--r-- | js/tests/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/README.md b/js/tests/README.md index 1e96a6b5da..ca99c0ede0 100644 --- a/js/tests/README.md +++ b/js/tests/README.md @@ -35,7 +35,7 @@ Currently we're aiming for at least 90% test coverage for our code. To ensure yo describe('getInstance', () => { it('should return null if there is no instance', () => { // Make assertion - expect(Tab.getInstance(fixtureEl)).toEqual(null) + expect(Tab.getInstance(fixtureEl)).toBeNull() }) it('should return this instance', () => { |