Skip to content

Commit 255c7cb

Browse files
fix unit tests
1 parent e107a16 commit 255c7cb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

test/unit/cursor/abstract_cursor.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ describe('class AbstractCursor', () => {
3232
});
3333

3434
context('#constructor', () => {
35-
it('creates a session if none passed in', () => {
35+
it('does not create a session if none passed in', () => {
3636
const cursor = new ConcreteCursor(client);
37-
expect(cursor).to.have.property('session').that.is.instanceOf(ClientSession);
37+
expect(cursor).to.have.property('session').that.is.null;
3838
});
3939

4040
it('uses the passed in session', async () => {

test/unit/cursor/aggregation_cursor.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ describe('class AggregationCursor', () => {
2929
});
3030

3131
context('clone()', () => {
32-
it('returns a new cursor with a different session', () => {
32+
it('returns a new cursor', () => {
3333
const cloned = cursor.clone();
3434
expect(cursor).to.not.equal(cloned);
35-
expect(cursor.session).to.not.equal(cloned.session);
3635
});
3736
});
3837

0 commit comments

Comments
 (0)