1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-12 16:44:17 +02:00

tests: minor cleanup (#35138)

* tests: minor cleanup

* tests: use the util noop function
This commit is contained in:
XhmikosR
2021-10-08 12:32:11 +03:00
committed by GitHub
parent eb0f705621
commit a260967a55
18 changed files with 19 additions and 57 deletions

View File

@@ -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 */
})