Skip to content

Commit 8b9986a

Browse files
committed
Remove unneeded length checks
1 parent 6bd72a4 commit 8b9986a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/signcode-test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ describe('signcode', function () {
134134

135135
signcode.sign(options, function (error) {
136136
assert(error instanceof Error)
137-
assert(error.message.length > 0)
138137
assert.notEqual(error.message.indexOf('Failed to read private key file'), -1)
139138
done()
140139
})
@@ -154,7 +153,6 @@ describe('signcode', function () {
154153

155154
signcode.sign(options, function (error) {
156155
assert(error instanceof Error)
157-
assert(error.message.length > 0)
158156
assert.notEqual(error.message.indexOf('Failed to read private key file'), -1)
159157
done()
160158
})
@@ -174,7 +172,6 @@ describe('signcode', function () {
174172

175173
signcode.sign(options, function (error) {
176174
assert(error instanceof Error)
177-
assert(error.message.length > 0)
178175
assert.notEqual(error.message.indexOf('Failed to open password file'), -1)
179176
done()
180177
})
@@ -192,7 +189,6 @@ describe('signcode', function () {
192189

193190
signcode.sign(options, function (error) {
194191
assert(error instanceof Error)
195-
assert(error.message.length > 0)
196192
assert.notEqual(error.message.indexOf('Failed to read certificate file'), -1)
197193
done()
198194
})
@@ -210,7 +206,6 @@ describe('signcode', function () {
210206

211207
signcode.sign(options, function (error) {
212208
assert(error instanceof Error)
213-
assert(error.message.length > 0)
214209
assert.notEqual(error.message.indexOf('Failed to read private key file'), -1)
215210
done()
216211
})

0 commit comments

Comments
 (0)