Skip to content

Commit 230e34b

Browse files
daprahamianmbroadst
authored andcommitted
test: remove console.log
1 parent b56f026 commit 230e34b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

test/match_transaction_spec.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ const SYMBOL_DOES_NOT_EXIST = Symbol('[[assert does not exist]]');
44
const SYMBOL_DOES_EXIST = Symbol('[[assert does exist]]');
55
const SYMBOL_IGNORE = Symbol('[[ignore]]');
66

7-
const EJSON = require('mongodb-extjson');
8-
97
function valIs42(input) {
108
return input === 42 || input === '42';
119
}
@@ -40,7 +38,7 @@ function generateMatchAndDiffSpecialCase(key, expectedObj, actualObj, metadata)
4038
if (key === 'lsid' && typeof expected === 'string') {
4139
// Case lsid - assert that session matches session in session data
4240
const sessionData = metadata.sessionData;
43-
const lsid = JSON.parse(EJSON.stringify(sessionData[expected] && sessionData[expected].id));
41+
const lsid = sessionData[expected];
4442
return generateMatchAndDiff(lsid, actual, metadata);
4543
} else if (key === 'getMore' && expectedIs42) {
4644
// cursorid - explicitly ignore 42 values
@@ -135,11 +133,6 @@ function matchSpec(chai, utils) {
135133

136134
const result = generateMatchAndDiff(expected, actual, { sessionData });
137135

138-
if (!result.match) {
139-
console.log('fizzz');
140-
console.dir(actual, { depth: 6 });
141-
}
142-
143136
chai.Assertion.prototype.assert.call(
144137
this,
145138
result.match,

0 commit comments

Comments
 (0)