Skip to content

Commit 3dcdc2f

Browse files
committed
Change snapshot test to use expect.to.satisfies
It shows value passed to the `expect()`
1 parent d846be1 commit 3dcdc2f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

test/src/e2e/snapshot.test.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,8 @@ describe("Snapshot", async function() {
5050
const stateRoot = (await node.sdk.rpc.chain.getBlock(blockHash))!
5151
.stateRoot;
5252
expect(
53-
fs.existsSync(
54-
path.join(
55-
SNAPSHOT_PATH,
56-
blockHash.toString(),
57-
stateRoot.toString()
58-
)
59-
)
60-
).to.be.true;
53+
path.join(SNAPSHOT_PATH, blockHash.toString(), stateRoot.toString())
54+
).to.satisfies(fs.existsSync);
6155
});
6256

6357
afterEach(function() {

0 commit comments

Comments
 (0)