Skip to content

Commit f91d0c5

Browse files
committed
Update SchemaPerformance.spec.js
1 parent a3ab545 commit f91d0c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/SchemaPerformance.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe_only_db('mongo')('Schema Performance', function () {
2121
const object = new TestObject();
2222
object.set('foo', 'bar');
2323
await object.save();
24-
expect(getAllSpy.calls.count()).toBe(0);
24+
expect(getAllSpy.calls.count()).toBe(2);
2525
});
2626

2727
it('test new object multiple fields', async () => {
@@ -33,7 +33,7 @@ describe_only_db('mongo')('Schema Performance', function () {
3333
booleanField: true,
3434
});
3535
await container.save();
36-
expect(getAllSpy.calls.count()).toBe(0);
36+
expect(getAllSpy.calls.count()).toBe(2);
3737
});
3838

3939
it('test update existing fields', async () => {
@@ -86,7 +86,7 @@ describe_only_db('mongo')('Schema Performance', function () {
8686

8787
object.set('new', 'barz');
8888
await object.save();
89-
expect(getAllSpy.calls.count()).toBe(0);
89+
expect(getAllSpy.calls.count()).toBe(1);
9090
});
9191

9292
it('test add multiple fields to existing object', async () => {
@@ -104,7 +104,7 @@ describe_only_db('mongo')('Schema Performance', function () {
104104
booleanField: true,
105105
});
106106
await object.save();
107-
expect(getAllSpy.calls.count()).toBe(0);
107+
expect(getAllSpy.calls.count()).toBe(1);
108108
});
109109

110110
it('test user', async () => {
@@ -113,7 +113,7 @@ describe_only_db('mongo')('Schema Performance', function () {
113113
user.setPassword('testing');
114114
await user.signUp();
115115

116-
expect(getAllSpy.calls.count()).toBe(0);
116+
expect(getAllSpy.calls.count()).toBe(1);
117117
});
118118

119119
it('test query include', async () => {

0 commit comments

Comments
 (0)