Skip to content

Commit 3986b11

Browse files
committed
test: update tests
1 parent 50bc34a commit 3986b11

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ describe('store', function () {
285285
debouncingLoad: false,
286286
loadingCount: false,
287287
collection: 'test',
288-
count: 0,
288+
count: null,
289289
docs: [],
290290
docsPerPage: 25,
291291
end: 0,
@@ -1170,6 +1170,7 @@ describe('store', function () {
11701170
store.state.insert.jsonView = true;
11711171
store.state.insert.doc = hadronDoc;
11721172
store.state.insert.jsonDoc = jsonDoc;
1173+
store.state.count = 0;
11731174
});
11741175

11751176
it('does not insert the document and sets the error', async function () {
@@ -1202,6 +1203,7 @@ describe('store', function () {
12021203
store.state.insert.jsonView = true;
12031204
store.state.insert.doc = hadronDoc;
12041205
store.state.insert.jsonDoc = jsonDoc;
1206+
store.state.count = 0;
12051207
});
12061208

12071209
afterEach(function () {
@@ -1233,6 +1235,7 @@ describe('store', function () {
12331235
beforeEach(function () {
12341236
store.state.insert.doc = doc;
12351237
store.state.insert.jsonDoc = jsonDoc;
1238+
store.state.count = 0;
12361239
});
12371240

12381241
afterEach(function () {
@@ -1267,6 +1270,7 @@ describe('store', function () {
12671270
store.state.insert.jsonView = true;
12681271
store.state.insert.doc = hadronDoc;
12691272
store.state.insert.jsonDoc = jsonDoc;
1273+
store.state.count = 0;
12701274
});
12711275

12721276
afterEach(async function () {
@@ -1425,6 +1429,7 @@ describe('store', function () {
14251429

14261430
beforeEach(function () {
14271431
store.state.insert.jsonDoc = JSON.stringify(docs);
1432+
store.state.count = 0;
14281433
});
14291434

14301435
afterEach(function () {

0 commit comments

Comments
 (0)