feat: unit-test with cmocka
- Test only 1 function which is in utils2.c
- Because is not inlude nano sdk
- Move zemu's into functional folder
- Change path of zemu's test in CI and Makefile
This commit is contained in:
committed by
Coline
parent
4eb7109b86
commit
ad8334e54c
19
tests/functional/setupTests.js
Normal file
19
tests/functional/setupTests.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import expect from 'expect'
|
||||
|
||||
expect.extend({
|
||||
toMatchSnapshot(received, original) {
|
||||
|
||||
if(received.data.equals(original.data)){
|
||||
return {
|
||||
message: () => `snapshots are equal`,
|
||||
pass: true
|
||||
}
|
||||
} else {
|
||||
console.log("snapshots are not equal")
|
||||
return {
|
||||
message: () => `snapshots are not equal`,
|
||||
pass: false
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user