Skip to content

Commit 85f617e

Browse files
committed
Assert on error messages
1 parent 0c18200 commit 85f617e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/signcode-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ describe('signcode', function () {
154154
signcode.sign(options, function (error) {
155155
assert(error instanceof Error)
156156
assert(error.message.length > 0)
157+
assert.notEqual(error.message.indexOf('Failed to read private key file'), -1)
157158
done()
158159
})
159160
})
@@ -173,6 +174,7 @@ describe('signcode', function () {
173174
signcode.sign(options, function (error) {
174175
assert(error instanceof Error)
175176
assert(error.message.length > 0)
177+
assert.notEqual(error.message.indexOf('Failed to open password file'), -1)
176178
done()
177179
})
178180
})

0 commit comments

Comments
 (0)