Skip to content

Commit b046bdc

Browse files
committed
chore: test assertion on newer node
1 parent c6bdbe8 commit b046bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lib-https-proxy-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('lib/http-proxy.js', function() {
168168
proxy.on('error', function (err, req, res) {
169169
expect(err).to.be.an(Error);
170170
if (semver.gt(process.versions.node, '0.12.0')) {
171-
expect(err.toString()).to.be('Error: unable to verify the first certificate')
171+
expect(err.toString()).to.match(/Error: unable to verify the first certificate/)
172172
} else {
173173
expect(err.toString()).to.be('Error: DEPTH_ZERO_SELF_SIGNED_CERT')
174174
}

0 commit comments

Comments
 (0)