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:
@@ -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 */
|
||||
})
|
||||
|
Reference in New Issue
Block a user