@@ -137,13 +137,13 @@ describe('expect()', function () {
137
137
it ( 'asserts on invalid condition (large array, display not truncated)' , function ( done ) {
138
138
139
139
var exception = false ;
140
- var origTruncate = Code . truncate ;
140
+ var origTruncate = Code . settings . truncateMessages ;
141
141
try {
142
- Code . truncate = false ;
142
+ Code . settings . truncateMessages = false ;
143
143
Code . expect ( [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 ] ) . to . be . a . string ( ) ;
144
144
}
145
145
catch ( err ) {
146
- Code . truncate = origTruncate ;
146
+ Code . settings . truncateMessages = origTruncate ;
147
147
exception = err ;
148
148
}
149
149
@@ -168,13 +168,13 @@ describe('expect()', function () {
168
168
it ( 'asserts on invalid condition (large object, display not truncated)' , function ( done ) {
169
169
170
170
var exception = false ;
171
- var origTruncate = Code . truncate ;
171
+ var origTruncate = Code . settings . truncateMessages ;
172
172
try {
173
- Code . truncate = false ;
173
+ Code . settings . truncateMessages = false ;
174
174
Code . expect ( { a : 1 , b : 2 , c : 3 , d : 4 , e : 5 , f : 6 , g : 7 , h : 8 , i : 9 , j : 10 } ) . to . be . a . string ( ) ;
175
175
}
176
176
catch ( err ) {
177
- Code . truncate = origTruncate ;
177
+ Code . settings . truncateMessages = origTruncate ;
178
178
exception = err ;
179
179
}
180
180
@@ -199,13 +199,13 @@ describe('expect()', function () {
199
199
it ( 'asserts on invalid condition (long object values, display not truncated)' , function ( done ) {
200
200
201
201
var exception = false ;
202
- var origTruncate = Code . truncate ;
202
+ var origTruncate = Code . settings . truncateMessages ;
203
203
try {
204
- Code . truncate = false ;
204
+ Code . settings . truncateMessages = false ;
205
205
Code . expect ( { a : 12345678901234567890 , b : 12345678901234567890 } ) . to . be . a . string ( ) ;
206
206
}
207
207
catch ( err ) {
208
- Code . truncate = origTruncate ;
208
+ Code . settings . truncateMessages = origTruncate ;
209
209
exception = err ;
210
210
}
211
211
@@ -230,13 +230,13 @@ describe('expect()', function () {
230
230
it ( 'asserts on invalid condition (long string, display not truncated)' , function ( done ) {
231
231
232
232
var exception = false ;
233
- var origTruncate = Code . truncate ;
233
+ var origTruncate = Code . settings . truncateMessages ;
234
234
try {
235
- Code . truncate = false ;
235
+ Code . settings . truncateMessages = false ;
236
236
Code . expect ( '{ a: 1, b: 2, c: 3, d: 4, e: 5, f: 6, g: 7, h: 8, i: 9, j: 10 }' ) . to . be . a . number ( ) ;
237
237
}
238
238
catch ( err ) {
239
- Code . truncate = origTruncate ;
239
+ Code . settings . truncateMessages = origTruncate ;
240
240
exception = err ;
241
241
}
242
242
0 commit comments