@@ -37,134 +37,134 @@ describe('Mocha', function () {
37
37
it ( 'should add the given file to the files array' , function ( ) {
38
38
var mocha = new Mocha ( blankOpts ) ;
39
39
mocha . addFile ( 'myFile.js' ) ;
40
- mocha . files . length . should . equal ( 1 ) ;
41
- mocha . files [ 0 ] . should . equal ( 'myFile.js' ) ;
40
+ expect ( mocha . files . length ) . to . equal ( 1 ) ;
41
+ expect ( mocha . files [ 0 ] ) . to . equal ( 'myFile.js' ) ;
42
42
} ) ;
43
43
} ) ;
44
44
45
45
describe ( '.invert()' , function ( ) {
46
46
it ( 'should set the invert option to true' , function ( ) {
47
47
var mocha = new Mocha ( blankOpts ) ;
48
48
mocha . invert ( ) ;
49
- mocha . options . invert . should . equal ( true ) ;
49
+ expect ( mocha . options . invert ) . to . equal ( true ) ;
50
50
} ) ;
51
51
52
52
it ( 'should be chainable' , function ( ) {
53
53
var mocha = new Mocha ( blankOpts ) ;
54
- mocha . invert ( ) . should . equal ( mocha ) ;
54
+ expect ( mocha . invert ( ) ) . to . equal ( mocha ) ;
55
55
} ) ;
56
56
} ) ;
57
57
58
58
describe ( '.ignoreLeaks()' , function ( ) {
59
59
it ( 'should set the ignoreLeaks option to true when param equals true' , function ( ) {
60
60
var mocha = new Mocha ( blankOpts ) ;
61
61
mocha . ignoreLeaks ( true ) ;
62
- mocha . options . ignoreLeaks . should . equal ( true ) ;
62
+ expect ( mocha . options . ignoreLeaks ) . to . equal ( true ) ;
63
63
} ) ;
64
64
65
65
it ( 'should set the ignoreLeaks option to false when param equals false' , function ( ) {
66
66
var mocha = new Mocha ( blankOpts ) ;
67
67
mocha . ignoreLeaks ( false ) ;
68
- mocha . options . ignoreLeaks . should . equal ( false ) ;
68
+ expect ( mocha . options . ignoreLeaks ) . to . equal ( false ) ;
69
69
} ) ;
70
70
71
71
it ( 'should set the ignoreLeaks option to false when the param is undefined' , function ( ) {
72
72
var mocha = new Mocha ( blankOpts ) ;
73
73
mocha . ignoreLeaks ( ) ;
74
- mocha . options . ignoreLeaks . should . equal ( false ) ;
74
+ expect ( mocha . options . ignoreLeaks ) . to . equal ( false ) ;
75
75
} ) ;
76
76
77
77
it ( 'should be chainable' , function ( ) {
78
78
var mocha = new Mocha ( blankOpts ) ;
79
- mocha . ignoreLeaks ( false ) . should . equal ( mocha ) ;
79
+ expect ( mocha . ignoreLeaks ( false ) ) . to . equal ( mocha ) ;
80
80
} ) ;
81
81
} ) ;
82
82
83
83
describe ( '.checkLeaks()' , function ( ) {
84
84
it ( 'should set the ignoreLeaks option to false' , function ( ) {
85
85
var mocha = new Mocha ( blankOpts ) ;
86
86
mocha . checkLeaks ( ) ;
87
- mocha . options . ignoreLeaks . should . equal ( false ) ;
87
+ expect ( mocha . options . ignoreLeaks ) . to . equal ( false ) ;
88
88
} ) ;
89
89
90
90
it ( 'should be chainable' , function ( ) {
91
91
var mocha = new Mocha ( blankOpts ) ;
92
- mocha . checkLeaks ( ) . should . equal ( mocha ) ;
92
+ expect ( mocha . checkLeaks ( ) ) . to . equal ( mocha ) ;
93
93
} ) ;
94
94
} ) ;
95
95
96
96
describe ( '.fullTrace()' , function ( ) {
97
97
it ( 'should set the fullStackTrace option to true' , function ( ) {
98
98
var mocha = new Mocha ( blankOpts ) ;
99
99
mocha . fullTrace ( ) ;
100
- mocha . options . fullStackTrace . should . equal ( true ) ;
100
+ expect ( mocha . options . fullStackTrace ) . to . equal ( true ) ;
101
101
} ) ;
102
102
103
103
it ( 'should be chainable' , function ( ) {
104
104
var mocha = new Mocha ( blankOpts ) ;
105
- mocha . fullTrace ( ) . should . equal ( mocha ) ;
105
+ expect ( mocha . fullTrace ( ) ) . to . equal ( mocha ) ;
106
106
} ) ;
107
107
} ) ;
108
108
109
109
describe ( '.growl()' , function ( ) {
110
110
it ( 'should set the growl option to true' , function ( ) {
111
111
var mocha = new Mocha ( blankOpts ) ;
112
112
mocha . growl ( ) ;
113
- mocha . options . growl . should . equal ( true ) ;
113
+ expect ( mocha . options . growl ) . to . equal ( true ) ;
114
114
} ) ;
115
115
116
116
it ( 'should be chainable' , function ( ) {
117
117
var mocha = new Mocha ( blankOpts ) ;
118
- mocha . growl ( ) . should . equal ( mocha ) ;
118
+ expect ( mocha . growl ( ) ) . to . equal ( mocha ) ;
119
119
} ) ;
120
120
} ) ;
121
121
122
122
describe ( '.useInlineDiffs()' , function ( ) {
123
123
it ( 'should set the useInlineDiffs option to true when param equals true' , function ( ) {
124
124
var mocha = new Mocha ( blankOpts ) ;
125
125
mocha . useInlineDiffs ( true ) ;
126
- mocha . options . useInlineDiffs . should . equal ( true ) ;
126
+ expect ( mocha . options . useInlineDiffs ) . to . equal ( true ) ;
127
127
} ) ;
128
128
129
129
it ( 'should set the useInlineDiffs option to false when param equals false' , function ( ) {
130
130
var mocha = new Mocha ( blankOpts ) ;
131
131
mocha . useInlineDiffs ( false ) ;
132
- mocha . options . useInlineDiffs . should . equal ( false ) ;
132
+ expect ( mocha . options . useInlineDiffs ) . to . equal ( false ) ;
133
133
} ) ;
134
134
135
135
it ( 'should set the useInlineDiffs option to false when the param is undefined' , function ( ) {
136
136
var mocha = new Mocha ( blankOpts ) ;
137
137
mocha . useInlineDiffs ( ) ;
138
- mocha . options . useInlineDiffs . should . equal ( false ) ;
138
+ expect ( mocha . options . useInlineDiffs ) . to . equal ( false ) ;
139
139
} ) ;
140
140
141
141
it ( 'should be chainable' , function ( ) {
142
142
var mocha = new Mocha ( blankOpts ) ;
143
- mocha . useInlineDiffs ( ) . should . equal ( mocha ) ;
143
+ expect ( mocha . useInlineDiffs ( ) ) . to . equal ( mocha ) ;
144
144
} ) ;
145
145
} ) ;
146
146
147
147
describe ( '.noHighlighting()' , function ( ) {
148
148
it ( 'should set the noHighlighting option to true' , function ( ) {
149
149
var mocha = new Mocha ( blankOpts ) ;
150
150
mocha . noHighlighting ( ) ;
151
- mocha . options . noHighlighting . should . equal ( true ) ;
151
+ expect ( mocha . options . noHighlighting ) . to . equal ( true ) ;
152
152
} ) ;
153
153
} ) ;
154
154
155
155
describe ( '.allowUncaught()' , function ( ) {
156
156
it ( 'should set the allowUncaught option to true' , function ( ) {
157
157
var mocha = new Mocha ( blankOpts ) ;
158
158
mocha . allowUncaught ( ) ;
159
- mocha . options . allowUncaught . should . equal ( true ) ;
159
+ expect ( mocha . options . allowUncaught ) . to . equal ( true ) ;
160
160
} ) ;
161
161
} ) ;
162
162
163
163
describe ( '.delay()' , function ( ) {
164
164
it ( 'should set the delay option to true' , function ( ) {
165
165
var mocha = new Mocha ( blankOpts ) ;
166
166
mocha . delay ( ) ;
167
- mocha . options . delay . should . equal ( true ) ;
167
+ expect ( mocha . options . delay ) . to . equal ( true ) ;
168
168
} ) ;
169
169
} ) ;
170
170
} ) ;
0 commit comments