diff --git a/packages/shell-api/src/integration.spec.ts b/packages/shell-api/src/integration.spec.ts index b50f7f25f..150e7af8d 100644 --- a/packages/shell-api/src/integration.spec.ts +++ b/packages/shell-api/src/integration.spec.ts @@ -847,8 +847,18 @@ describe('Shell API (integration)', function() { }); context('when a collection does not exist', () => { - it('returns false', async() => { - expect(await collection.drop()).to.be.false; + context('pre-7.0', () => { + skipIfServerVersion(testServer, '>= 7.0'); + it('returns false', async() => { + expect(await collection.drop()).to.be.false; + }); + }); + + context('post-7.0', () => { + skipIfServerVersion(testServer, '< 7.0'); + it('returns true', async() => { + expect(await collection.drop()).to.be.true; + }); }); }); }); @@ -865,8 +875,8 @@ describe('Shell API (integration)', function() { }); context('when a collection does not exist', () => { - it('returns false', async() => { - expect(await collection.drop()).to.be.false; + it('returns null', async() => { + expect(await collection.exists()).to.be.null; }); }); });