File tree Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 11$ ( function ( ) {
22 'use strict'
33
4+ window . Alert = typeof bootstrap !== 'undefined' ? bootstrap . Alert : Alert
5+
46 QUnit . module ( 'alert plugin' )
57
68 QUnit . test ( 'should be defined on jquery object' , function ( assert ) {
@@ -114,10 +116,6 @@ $(function () {
114116 QUnit . test ( 'should return alert version' , function ( assert ) {
115117 assert . expect ( 1 )
116118
117- if ( typeof Alert !== 'undefined' ) {
118- assert . strictEqual ( typeof Alert . VERSION , 'string' )
119- } else {
120- assert . notOk ( )
121- }
119+ assert . strictEqual ( typeof Alert . VERSION , 'string' )
122120 } )
123121} )
Original file line number Diff line number Diff line change 11$ ( function ( ) {
22 'use strict'
33
4+ window . Button = typeof bootstrap !== 'undefined' ? bootstrap . Button : Button
5+
46 QUnit . module ( 'button plugin' )
57
68 QUnit . test ( 'should be defined on jquery object' , function ( assert ) {
@@ -472,10 +474,6 @@ $(function () {
472474 QUnit . test ( 'should return button version' , function ( assert ) {
473475 assert . expect ( 1 )
474476
475- if ( typeof Button !== 'undefined' ) {
476- assert . strictEqual ( typeof Button . VERSION , 'string' )
477- } else {
478- assert . notOk ( )
479- }
477+ assert . strictEqual ( typeof Button . VERSION , 'string' )
480478 } )
481479} )
Original file line number Diff line number Diff line change 11$ ( function ( ) {
22 'use strict'
33
4- if ( typeof bootstrap !== 'undefined' ) {
5- window . Toast = bootstrap . Toast
6- }
4+ window . Toast = typeof bootstrap !== 'undefined' ? bootstrap . Toast : Toast
75
86 QUnit . module ( 'toast plugin' )
97
You can’t perform that action at this time.
0 commit comments