})
describe('data-api', () => {
- it('should close an alert without instanciate it manually', () => {
+ it('should close an alert without instantiate it manually', () => {
fixtureEl.innerHTML = [
'<div class="alert">',
' <button type="button" data-dismiss="alert">x</button>',
expect(makeArray(document.querySelectorAll('.alert')).length).toEqual(0)
})
- it('should close an alert without instanciate it manually with the parent selector', () => {
+ it('should close an alert without instantiate it manually with the parent selector', () => {
fixtureEl.innerHTML = [
'<div class="alert">',
' <button type="button" data-target=".alert" data-dismiss="alert">x</button>',
modal.show()
})
- it('should close modal when a click occured on data-dismiss="modal"', done => {
+ it('should close modal when a click occurred on data-dismiss="modal"', done => {
fixtureEl.innerHTML = [
'<div class="modal fade">',
' <div class="modal-dialog">',
})
describe('data-api', () => {
- it('should create dynamicaly a tab', done => {
+ it('should create dynamically a tab', done => {
fixtureEl.innerHTML = [
'<ul class="nav nav-tabs" role="tablist">',
' <li class="nav-item"><a href="#home" class="nav-link active" role="tab">Home</a></li>',