Update tests for parallelism

This commit is contained in:
TamtamHero
2021-08-26 14:27:49 +02:00
parent e1fc303626
commit a26f1dec33
15 changed files with 398 additions and 334 deletions

21
tests/setupTests.js Normal file
View File

@@ -0,0 +1,21 @@
import expect from 'expect'
expect.extend({
toMatchSnapshot(received, original) {
if(received.data.equals(original.data)){
return {
message: () => `snapshots are equal`,
pass: true
}
}
// console.log(received.data.toString('hex'))
// console.log(original.data.toString('hex'))
return {
message: () => `snapshots are not equal`,
pass: false
}
},
});