@@ -15,7 +15,7 @@ module.exports = function (options) {
15
15
} )
16
16
17
17
it ( 'should filter users' , async function ( ) {
18
- let props = { name : 'John' }
18
+ const props = { name : 'John' }
19
19
assert . debug ( 'findAll' , { age : 30 } )
20
20
const users = await adapter . findAll ( User , { age : 30 } )
21
21
assert . debug ( 'found' , JSON . stringify ( users , null , 2 ) )
@@ -120,7 +120,7 @@ module.exports = function (options) {
120
120
121
121
props = { content : 'test2' , postId : post [ Post . idAttribute ] , userId : post . userId }
122
122
assert . debug ( 'create' , props )
123
- let comment = await adapter . create ( Comment , props )
123
+ const comment = await adapter . create ( Comment , props )
124
124
assert . debug ( 'created' , JSON . stringify ( comment , null , 2 ) )
125
125
126
126
props = { name : 'Sally' }
@@ -135,7 +135,7 @@ module.exports = function (options) {
135
135
136
136
props = { content : 'test67' , postId : post2 [ Post . idAttribute ] , userId : post2 . userId }
137
137
assert . debug ( 'create' , props )
138
- let comment2 = await adapter . create ( Comment , props )
138
+ const comment2 = await adapter . create ( Comment , props )
139
139
assert . debug ( 'created' , JSON . stringify ( comment2 , null , 2 ) )
140
140
141
141
assert . debug ( 'findAll' )
@@ -168,7 +168,7 @@ module.exports = function (options) {
168
168
169
169
props = { content : 'test2' , postId : post [ Post . idAttribute ] , userId : post . userId }
170
170
assert . debug ( 'create' , props )
171
- let comment = await adapter . create ( Comment , props )
171
+ const comment = await adapter . create ( Comment , props )
172
172
assert . debug ( 'created' , JSON . stringify ( comment , null , 2 ) )
173
173
174
174
props = { name : 'Sally' }
@@ -183,7 +183,7 @@ module.exports = function (options) {
183
183
184
184
props = { content : 'test67' , postId : post2 [ Post . idAttribute ] , userId : post2 . userId }
185
185
assert . debug ( 'create' , props )
186
- let comment2 = await adapter . create ( Comment , props )
186
+ const comment2 = await adapter . create ( Comment , props )
187
187
assert . debug ( 'created' , JSON . stringify ( comment2 , null , 2 ) )
188
188
189
189
assert . debug ( 'find' )
0 commit comments