Skip to content

Commit 492f9ae

Browse files
committed
cleanup test
1 parent 30eaf12 commit 492f9ae

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/compass-crud/src/stores/crud-store.spec.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,22 +1265,14 @@ describe('store', function () {
12651265
// this should be invalid according to the validation rules
12661266
const jsonDoc = '{ "status": "testing" }';
12671267

1268-
beforeEach(async function () {
1268+
beforeEach(function () {
12691269
store.state.insert.jsonView = true;
12701270
store.state.insert.doc = hadronDoc;
12711271
store.state.insert.jsonDoc = jsonDoc;
1272-
await dataService.updateCollection('compass-crud.test', {
1273-
validator: { $jsonSchema: { required: ['abc'] } },
1274-
validationAction: 'error',
1275-
validationLevel: 'strict',
1276-
});
12771272
});
12781273

12791274
afterEach(async function () {
12801275
await dataService.deleteMany('compass-crud.test', {});
1281-
await dataService.updateCollection('compass-crud.test', {
1282-
validationLevel: 'off',
1283-
});
12841276
});
12851277

12861278
it('does not insert the document', async function () {

0 commit comments

Comments
 (0)