@@ -183,10 +183,15 @@ describe("CompilerSupplier", function () {
183
183
compilerCacheDirectory ,
184
184
compilerFilename !
185
185
) ;
186
- assert . isTrue ( fse . existsSync ( cachedCompilerPath ) , "Should have cached compiler" ) ;
186
+ assert . isTrue (
187
+ fse . existsSync ( cachedCompilerPath ) ,
188
+ "Should have cached compiler"
189
+ ) ;
187
190
188
191
// Get cached solc access time
189
- const initialAccessTime = ( await fse . stat ( cachedCompilerPath ) ) . atime . getTime ( ) ;
192
+ const initialAccessTime = (
193
+ await fse . stat ( cachedCompilerPath )
194
+ ) . atime . getTime ( ) ;
190
195
191
196
// Wait a second and recompile, verifying that the cached solc
192
197
// got accessed / ran ok.
@@ -197,7 +202,9 @@ describe("CompilerSupplier", function () {
197
202
options : cachedOptions
198
203
} ) ;
199
204
200
- const finalAccessTime = ( await fse . stat ( cachedCompilerPath ) ) . atime . getTime ( ) ;
205
+ const finalAccessTime = (
206
+ await fse . stat ( cachedCompilerPath )
207
+ ) . atime . getTime ( ) ;
201
208
const NewPragma = findOne ( "NewPragma" , compilations [ 0 ] . contracts ) ;
202
209
203
210
assert . equal ( NewPragma . contractName , "NewPragma" , "Should have compiled" ) ;
@@ -227,7 +234,7 @@ describe("CompilerSupplier", function () {
227
234
"Version8Pragma" ,
228
235
compilations [ 0 ] . contracts
229
236
) ; //update when necessary
230
- assert . isTrue ( VersionLatestPragma . compiler . version . includes ( "0.8." ) ) ; //update when necessary
237
+ assert . include ( VersionLatestPragma . compiler . version , "0.8." ) ; //update when necessary
231
238
assert . equal (
232
239
VersionLatestPragma . contractName ,
233
240
"Version8Pragma" , //update when necessary
@@ -328,7 +335,7 @@ describe("CompilerSupplier", function () {
328
335
}
329
336
330
337
assert . isDefined ( error ) ;
331
- assert . isTrue ( error . message . includes ( "option must be" ) ) ;
338
+ assert . include ( error . message , "option must be" ) ;
332
339
} ) ;
333
340
334
341
it ( "errors if running dockerized solc when image does not exist locally" , async function ( ) {
@@ -354,7 +361,7 @@ describe("CompilerSupplier", function () {
354
361
}
355
362
356
363
assert . isDefined ( error ) ;
357
- assert . isTrue ( error . message . includes ( imageName ) ) ;
364
+ assert . include ( error . message , imageName ) ;
358
365
} ) ;
359
366
} ) ;
360
367
} ) ;
0 commit comments