Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix(test): do not check deep equality when test.auth.db is null
Browse files Browse the repository at this point in the history
  • Loading branch information
kvwalker authored and mbroadst committed Sep 5, 2018
1 parent 345e6af commit 7d3c057
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/tests/unit/connection_string_spec_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,14 @@ describe('Connection String (spec)', function() {
});

expect(result.hosts).to.containSubset(test.hosts);
expect(result.auth).to.eql(test.auth);
if (test.auth) {
if (test.auth.db !== null) {
expect(result.auth).to.eql(test.auth);
} else {
expect(result.auth.username).to.eql(test.auth.username);
expect(result.auth.password).to.eql(test.auth.password);
}
}
expect(result.options).to.eql(test.options);
}

Expand Down

0 comments on commit 7d3c057

Please sign in to comment.