Skip to content

Commit e1b4e27

Browse files
committed
remove expect wrap
1 parent 3f6c223 commit e1b4e27

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/shell-api/src/collection.spec.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,11 +1181,9 @@ describe('Collection', function () {
11811181

11821182
it('returns the error as object', async function () {
11831183
let caughtError: Error | undefined;
1184-
expect(
1185-
await collection
1186-
.dropIndexes('index_1')
1187-
.catch((err) => (caughtError = err))
1188-
);
1184+
await collection
1185+
.dropIndexes('index_1')
1186+
.catch((err) => (caughtError = err));
11891187

11901188
expect(caughtError).to.deep.equal(expectedError);
11911189
});

0 commit comments

Comments
 (0)