'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl)
@@ -513,7 +513,7 @@ describe('Modal', () => {
})
it('should not close modal when clicking outside of modal-content if backdrop = false', done => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl, {
@@ -625,7 +625,7 @@ describe('Modal', () => {
})
it('should not adjust the inline body padding when it does not overflow', done => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl)
@@ -650,7 +650,7 @@ describe('Modal', () => {
})
it('should enforce focus', done => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl)
@@ -684,7 +684,7 @@ describe('Modal', () => {
describe('hide', () => {
it('should hide a modal', done => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl)
@@ -709,7 +709,7 @@ describe('Modal', () => {
})
it('should close modal when clicking outside of modal-content', done => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl)
@@ -730,7 +730,7 @@ describe('Modal', () => {
})
it('should do nothing is the modal is not shown', () => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl)
@@ -741,7 +741,7 @@ describe('Modal', () => {
})
it('should do nothing is the modal is transitioning', () => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl)
@@ -753,7 +753,7 @@ describe('Modal', () => {
})
it('should not hide a modal if hide is prevented', done => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const modalEl = fixtureEl.querySelector('.modal')
const modal = new Modal(modalEl)
@@ -970,7 +970,7 @@ describe('Modal', () => {
describe('jQueryInterface', () => {
it('should create a modal', () => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const div = fixtureEl.querySelector('div')
@@ -983,7 +983,7 @@ describe('Modal', () => {
})
it('should not re create a modal', () => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const div = fixtureEl.querySelector('div')
const modal = new Modal(div)
@@ -997,7 +997,7 @@ describe('Modal', () => {
})
it('should throw error on undefined method', () => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const div = fixtureEl.querySelector('div')
const action = 'undefinedMethod'
@@ -1013,7 +1013,7 @@ describe('Modal', () => {
})
it('should should call show method', () => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const div = fixtureEl.querySelector('div')
const modal = new Modal(div)
@@ -1046,7 +1046,7 @@ describe('Modal', () => {
describe('getInstance', () => {
it('should return modal instance', () => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const div = fixtureEl.querySelector('div')
const modal = new Modal(div)
@@ -1055,7 +1055,7 @@ describe('Modal', () => {
})
it('should return null when there is no modal instance', () => {
- fixtureEl.innerHTML = '
'
+ fixtureEl.innerHTML = '
'
const div = fixtureEl.querySelector('div')