Skip to content

Commit 879be02

Browse files
committed
[ISSUE]: test added
Signed-off-by: ashish <[email protected]> Signed-off-by: ashish <[email protected]>
1 parent 8533228 commit 879be02

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

test/commands/hash.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,15 @@ describe('hash', () => {
106106
.it("If File not found ->cdt hash -f 'test/resources/filenotfound.txt'", ctx => {
107107
expect(ctx.stdout).to.contain('Could not find file')
108108
})
109-
//installer file - checksum check
109+
//installer file - checksum check sha1
110+
test
111+
.stdout()
112+
.command(['hash', '-t', 'sha1', '-f', 'test/resources/apache-maven-3.6.3-src.tar.gz'])
113+
.it('Installer checksum validation', ctx => {
114+
expect(ctx.stdout).to.contain('ccf441f3bf7f477301ebc80742cbda1da73c30a2')
115+
})
116+
117+
//installer file - checksum check sha512
110118
test
111119
.stdout()
112120
.command(['hash', '-t', 'sha512', '-f', 'test/resources/apache-maven-3.6.3-src.tar.gz'])
-2.63 MB
Binary file not shown.

0 commit comments

Comments
 (0)