Skip to content

Commit

Permalink
Change snapshot test to use expect.to.satisfies
Browse files Browse the repository at this point in the history
It shows value passed to the `expect()`
  • Loading branch information
foriequal0 committed Dec 6, 2019
1 parent 8d59cc5 commit fe700e1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/src/e2e/snapshot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,8 @@ describe("Snapshot", async function() {
const stateRoot = (await node.sdk.rpc.chain.getBlock(blockHash))!
.stateRoot;
expect(
fs.existsSync(
path.join(
SNAPSHOT_PATH,
blockHash.toString(),
stateRoot.toString()
)
)
).to.be.true;
path.join(SNAPSHOT_PATH, blockHash.toString(), stateRoot.toString())
).to.satisfies(fs.existsSync);
});

afterEach(function() {
Expand Down

0 comments on commit fe700e1

Please sign in to comment.