diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-10-08 12:32:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 12:32:11 +0300 |
commit | a260967a55806a26bee15a5c1eb890c9e6a3ba02 (patch) | |
tree | 981cc48b063daf993386afa829857c71a8f01aff /js/tests/unit/dom | |
parent | eb0f705621a044d25d6de0e5d1b4dde306b5004d (diff) |
tests: minor cleanup (#35138)
* tests: minor cleanup
* tests: use the util noop function
Diffstat (limited to 'js/tests/unit/dom')
-rw-r--r-- | js/tests/unit/dom/data.spec.js | 5 | ||||
-rw-r--r-- | js/tests/unit/dom/event-handler.spec.js | 2 | ||||
-rw-r--r-- | js/tests/unit/dom/manipulator.spec.js | 2 | ||||
-rw-r--r-- | js/tests/unit/dom/selector-engine.spec.js | 2 |
4 files changed, 2 insertions, 9 deletions
diff --git a/js/tests/unit/dom/data.spec.js b/js/tests/unit/dom/data.spec.js index a00d3b7341..2560caff75 100644 --- a/js/tests/unit/dom/data.spec.js +++ b/js/tests/unit/dom/data.spec.js @@ -1,6 +1,4 @@ import Data from '../../../src/dom/data' - -/** Test helpers */ import { getFixture, clearFixture } from '../../helpers/fixture' describe('Data', () => { @@ -90,8 +88,8 @@ describe('Data', () => { expect(Data.get(div, TEST_KEY)).toBeNull() }) + /* eslint-disable no-console */ it('should console.error a message if called with multiple keys', () => { - /* eslint-disable no-console */ console.error = jasmine.createSpy('console.error') const data = { ...TEST_DATA } @@ -103,4 +101,5 @@ describe('Data', () => { expect(console.error).toHaveBeenCalled() expect(Data.get(div, UNKNOWN_KEY)).toBe(null) }) + /* eslint-enable no-console */ }) diff --git a/js/tests/unit/dom/event-handler.spec.js b/js/tests/unit/dom/event-handler.spec.js index 45f2d6e553..19d63492b5 100644 --- a/js/tests/unit/dom/event-handler.spec.js +++ b/js/tests/unit/dom/event-handler.spec.js @@ -1,6 +1,4 @@ import EventHandler from '../../../src/dom/event-handler' - -/** Test helpers */ import { getFixture, clearFixture } from '../../helpers/fixture' describe('EventHandler', () => { diff --git a/js/tests/unit/dom/manipulator.spec.js b/js/tests/unit/dom/manipulator.spec.js index 13d0c3d17d..61ffe74553 100644 --- a/js/tests/unit/dom/manipulator.spec.js +++ b/js/tests/unit/dom/manipulator.spec.js @@ -1,6 +1,4 @@ import Manipulator from '../../../src/dom/manipulator' - -/** Test helpers */ import { getFixture, clearFixture } from '../../helpers/fixture' describe('Manipulator', () => { diff --git a/js/tests/unit/dom/selector-engine.spec.js b/js/tests/unit/dom/selector-engine.spec.js index 08c3ae8184..09c85a88ad 100644 --- a/js/tests/unit/dom/selector-engine.spec.js +++ b/js/tests/unit/dom/selector-engine.spec.js @@ -1,6 +1,4 @@ import SelectorEngine from '../../../src/dom/selector-engine' - -/** Test helpers */ import { getFixture, clearFixture } from '../../helpers/fixture' describe('SelectorEngine', () => { |