Skip to content

Commit 5c7891d

Browse files
authored
Merge pull request #45 from codingtools/fix/validating-hashing-issue-34
[ISSUE]: added new test for big file
2 parents 32d7247 + cf7a4f3 commit 5c7891d

File tree

2 files changed

+2340
-0
lines changed

2 files changed

+2340
-0
lines changed

test/commands/hash.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ describe('hash', () => {
9090
expect(ctx.stdout).to.contain('d246b69fd991a1256f9e00f6914c8bd2d52b432e')
9191
})
9292

93+
//Big file input
94+
test
95+
.stdout()
96+
.command(['hash', '-t', 'sha512', '-f', 'test/resources/react.js']) //75KB
97+
.it("File Hashing -> cdt hash -f 'test/resources/react.js' -t 'sha512'", ctx => {
98+
expect(ctx.stdout).to.contain('74886dc316093bad0732f29dba9117cff013ad4488c6fa15bae44b9d0cbb2e5e9e12a3af1a112f3027629a9224b324ba882e4d0c1286f9d5d0ded1d44ebb65cb')
99+
})
100+
93101
//file input sha512
94102
test
95103
.stdout()

0 commit comments

Comments
 (0)