@@ -23,54 +23,54 @@ define([
2323 it ( 'correctly defines singleItemOpen' , function ( ) {
2424 var bellows = new Bellows ( $element ) ;
2525
26- assert . isFalse ( bellows . options . singleItemOpen ) ;
27- assert . isBoolean ( bellows . options . singleItemOpen ) ;
26+ expect ( bellows . options . singleItemOpen ) . to . be . false ;
27+ expect ( bellows . options . singleItemOpen ) . to . be . a ( 'boolean' ) ;
2828 } ) ;
2929
3030 it ( 'correctly defines duration' , function ( ) {
3131 var bellows = new Bellows ( $element ) ;
3232
33- assert . equal ( bellows . options . duration , 200 ) ;
34- assert . isNumber ( bellows . options . duration ) ;
33+ expect ( bellows . options . duration ) . to . equal ( 200 ) ;
34+ expect ( bellows . options . duration ) . to . be . a ( 'number' ) ;
3535 } ) ;
3636
3737 it ( 'correctly defines easing' , function ( ) {
3838 var bellows = new Bellows ( $element ) ;
3939
40- assert . equal ( bellows . options . easing , 'swing' ) ;
41- assert . isString ( bellows . options . easing ) ;
40+ expect ( bellows . options . easing ) . to . equal ( 'swing' ) ;
41+ expect ( bellows . options . easing ) . to . be . a ( 'string' ) ;
4242 } ) ;
4343
4444 it ( 'correctly defines events' , function ( ) {
4545 var bellows = new Bellows ( $element ) ;
4646
47- assert . isFunction ( bellows . options . open ) ;
48- assert . isFunction ( bellows . options . opened ) ;
49- assert . isFunction ( bellows . options . close ) ;
50- assert . isFunction ( bellows . options . closed ) ;
47+ expect ( bellows . options . open ) . to . be . a ( 'function' ) ;
48+ expect ( bellows . options . opened ) . to . be . a ( 'function' ) ;
49+ expect ( bellows . options . close ) . to . be . a ( 'function' ) ;
50+ expect ( bellows . options . closed ) . to . be . a ( 'function' ) ;
5151 } ) ;
5252 } ) ;
5353
5454 describe ( 'creates custom options when options parameter used' , function ( ) {
5555 it ( 'correctly defines singleItemOpen as true' , function ( ) {
5656 var bellows = new Bellows ( $element , { singleItemOpen : true } ) ;
5757
58- assert . isTrue ( bellows . options . singleItemOpen ) ;
59- assert . isBoolean ( bellows . options . singleItemOpen ) ;
58+ expect ( bellows . options . singleItemOpen ) . to . be . true ;
59+ expect ( bellows . options . singleItemOpen ) . to . be . a ( 'boolean' ) ;
6060 } ) ;
6161
6262 it ( 'correctly defines duration of 400' , function ( ) {
6363 var bellows = new Bellows ( $element , { duration : 400 } ) ;
6464
65- assert . equal ( bellows . options . duration , 400 ) ;
66- assert . isNumber ( bellows . options . duration ) ;
65+ expect ( bellows . options . duration ) . to . equal ( 400 ) ;
66+ expect ( bellows . options . duration ) . to . be . a ( 'number' ) ;
6767 } ) ;
6868
6969 it ( 'correctly defines easing as ease-in-out' , function ( ) {
7070 var bellows = new Bellows ( $element , { easing : 'ease-in-out' } ) ;
7171
72- assert . equal ( bellows . options . easing , 'ease-in-out' ) ;
73- assert . isString ( bellows . options . easing ) ;
72+ expect ( bellows . options . easing ) . to . equal ( 'ease-in-out' ) ;
73+ expect ( bellows . options . easing ) . to . be . a ( 'string' ) ;
7474 } ) ;
7575
7676 it ( 'correctly defines open event' , function ( ) {
@@ -79,8 +79,8 @@ define([
7979 } ;
8080 var bellows = new Bellows ( $element , { open : open } ) ;
8181
82- assert . equal ( bellows . options . open , open ) ;
83- assert . isFunction ( bellows . options . open ) ;
82+ expect ( bellows . options . open ) . to . equal ( open ) ;
83+ expect ( bellows . options . open ) . to . be . a ( 'function' ) ;
8484 } ) ;
8585
8686 it ( 'correctly defines open event' , function ( ) {
@@ -89,8 +89,8 @@ define([
8989 } ;
9090 var bellows = new Bellows ( $element , { open : open } ) ;
9191
92- assert . equal ( bellows . options . open , open ) ;
93- assert . isFunction ( bellows . options . open ) ;
92+ expect ( bellows . options . open ) . to . equal ( open ) ;
93+ expect ( bellows . options . open ) . to . be . a ( 'function' ) ;
9494 } ) ;
9595
9696 it ( 'correctly defines opened event' , function ( ) {
@@ -99,8 +99,8 @@ define([
9999 } ;
100100 var bellows = new Bellows ( $element , { opened : opened } ) ;
101101
102- assert . equal ( bellows . options . opened , opened ) ;
103- assert . isFunction ( bellows . options . opened ) ;
102+ expect ( bellows . options . opened ) . to . equal ( opened ) ;
103+ expect ( bellows . options . opened ) . to . be . a ( 'function' ) ;
104104 } ) ;
105105
106106 it ( 'correctly defines close event' , function ( ) {
@@ -109,8 +109,8 @@ define([
109109 } ;
110110 var bellows = new Bellows ( $element , { close : close } ) ;
111111
112- assert . equal ( bellows . options . close , close ) ;
113- assert . isFunction ( bellows . options . close ) ;
112+ expect ( bellows . options . close ) . to . equal ( close ) ;
113+ expect ( bellows . options . close ) . to . be . a ( 'function' ) ;
114114 } ) ;
115115
116116 it ( 'correctly defines closed event' , function ( ) {
@@ -119,8 +119,8 @@ define([
119119 } ;
120120 var bellows = new Bellows ( $element , { closed : closed } ) ;
121121
122- assert . equal ( bellows . options . closed , closed ) ;
123- assert . isFunction ( bellows . options . closed ) ;
122+ expect ( bellows . options . closed ) . to . equal ( closed ) ;
123+ expect ( bellows . options . closed ) . to . be . a ( 'function' ) ;
124124 } ) ;
125125 } ) ;
126126 } ) ;
0 commit comments