Improved reliability of strictAssert

This commit is contained in:
jamiebuilds-signal 2022-09-14 09:40:50 -07:00 committed by GitHub
parent 1a54d438c2
commit 64a4d2e717
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 8 deletions

View file

@ -163,7 +163,7 @@ describe('updater/differential', () => {
server.listen(0, () => {
const addr = server.address();
strictAssert(typeof addr === 'object' && addr, 'node.js apis');
strictAssert(typeof addr === 'object' && addr != null, 'node.js apis');
baseUrl = `http://127.0.0.1:${addr.port}`;
callback();