Skip to content

Commit 608bdfd

Browse files
committed
chore: remove debug and comment
1 parent 51eecd3 commit 608bdfd

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

test/integration/client-side-encryption/client_side_encryption.spec.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const SKIPPED_TESTS = new Set([
6262

6363
const isServerless = !!process.env.SERVERLESS;
6464

65-
describe.only('Client Side Encryption (Legacy)', function () {
65+
describe('Client Side Encryption (Legacy)', function () {
6666
const testContext = new TestRunnerContext({ requiresCSFLE: true });
6767
const testSuites = gatherTestSuites(
6868
path.join(__dirname, '../../spec/client-side-encryption/tests/legacy'),

test/tools/spec-runner/matcher.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ function is42(input) {
2323
function generateMatchAndDiffSpecialCase(key, expectedObj, actualObj, metadata) {
2424
const expected = expectedObj[key];
2525
const actual = actualObj[key];
26-
console.log('MATCH AND DIFF', key, expected, actual);
2726

2827
if (expected === null) {
2928
if (key === 'readConcern') {
@@ -45,12 +44,13 @@ function generateMatchAndDiffSpecialCase(key, expectedObj, actualObj, metadata)
4544
};
4645
}
4746

47+
// An expected null value is not the same as the value not being present
48+
// so an exact match is forced here.
4849
const match = expected === actual;
49-
// const match = !Object.prototype.hasOwnProperty.call(actualObj, key);
5050
return {
5151
match,
52-
expected: SYMBOL_DOES_NOT_EXIST,
53-
actual: match ? SYMBOL_DOES_NOT_EXIST : actual
52+
expected: expected,
53+
actual: actual === undefined ? SYMBOL_DOES_EXIST : actual
5454
};
5555
}
5656

@@ -128,7 +128,6 @@ function generateMatchAndDiffSpecialCase(key, expectedObj, actualObj, metadata)
128128
}
129129

130130
function generateMatchAndDiff(expected, actual, metadata) {
131-
console.log('MATCH', expected, actual);
132131
const typeOfExpected = typeof expected;
133132

134133
if (typeOfExpected === 'object' && expected._bsontype === 'Int32' && typeof actual === 'number') {

0 commit comments

Comments
 (0)