Skip to content

Commit

Permalink
Fix typecheck test
Browse files Browse the repository at this point in the history
  • Loading branch information
gagik committed Oct 21, 2024
1 parent 5c6789c commit 51f3704
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/shell-api/src/database.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2904,7 +2904,9 @@ describe('Database', function () {
it('runs a $sql aggregation', async function () {
const serviceProviderCursor = stubInterface<ServiceProviderAggCursor>();
serviceProvider.aggregateDb.returns(serviceProviderCursor as any);
await database.sql('SELECT * FROM somecollection;', { options: true });
await database.sql('SELECT * FROM somecollection;', {
serializeFunctions: true,
});
expect(serviceProvider.aggregateDb).to.have.been.calledWith(
database._name,
[
Expand All @@ -2917,7 +2919,7 @@ describe('Database', function () {
},
},
],
{ options: true }
{ serializeFunctions: true }
);
});

Expand Down

0 comments on commit 51f3704

Please sign in to comment.