@@ -21,7 +21,7 @@ describe_only_db('mongo')('Schema Performance', function () {
21
21
const object = new TestObject ( ) ;
22
22
object . set ( 'foo' , 'bar' ) ;
23
23
await object . save ( ) ;
24
- expect ( getAllSpy . calls . count ( ) ) . toBe ( 0 ) ;
24
+ expect ( getAllSpy . calls . count ( ) ) . toBe ( 2 ) ;
25
25
} ) ;
26
26
27
27
it ( 'test new object multiple fields' , async ( ) => {
@@ -33,7 +33,7 @@ describe_only_db('mongo')('Schema Performance', function () {
33
33
booleanField : true ,
34
34
} ) ;
35
35
await container . save ( ) ;
36
- expect ( getAllSpy . calls . count ( ) ) . toBe ( 0 ) ;
36
+ expect ( getAllSpy . calls . count ( ) ) . toBe ( 2 ) ;
37
37
} ) ;
38
38
39
39
it ( 'test update existing fields' , async ( ) => {
@@ -86,7 +86,7 @@ describe_only_db('mongo')('Schema Performance', function () {
86
86
87
87
object . set ( 'new' , 'barz' ) ;
88
88
await object . save ( ) ;
89
- expect ( getAllSpy . calls . count ( ) ) . toBe ( 0 ) ;
89
+ expect ( getAllSpy . calls . count ( ) ) . toBe ( 1 ) ;
90
90
} ) ;
91
91
92
92
it ( 'test add multiple fields to existing object' , async ( ) => {
@@ -104,7 +104,7 @@ describe_only_db('mongo')('Schema Performance', function () {
104
104
booleanField : true ,
105
105
} ) ;
106
106
await object . save ( ) ;
107
- expect ( getAllSpy . calls . count ( ) ) . toBe ( 0 ) ;
107
+ expect ( getAllSpy . calls . count ( ) ) . toBe ( 1 ) ;
108
108
} ) ;
109
109
110
110
it ( 'test user' , async ( ) => {
@@ -113,7 +113,7 @@ describe_only_db('mongo')('Schema Performance', function () {
113
113
user . setPassword ( 'testing' ) ;
114
114
await user . signUp ( ) ;
115
115
116
- expect ( getAllSpy . calls . count ( ) ) . toBe ( 0 ) ;
116
+ expect ( getAllSpy . calls . count ( ) ) . toBe ( 1 ) ;
117
117
} ) ;
118
118
119
119
it ( 'test query include' , async ( ) => {
0 commit comments