Skip to content

Commit 89eb9f5

Browse files
authored
Merge pull request #3 from LinusU/prefer-const
Prefer const over let
2 parents 0800654 + 9a52c04 commit 89eb9f5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/findAll.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function (options) {
1515
})
1616

1717
it('should filter users', async function () {
18-
let props = { name: 'John' }
18+
const props = { name: 'John' }
1919
assert.debug('findAll', { age: 30 })
2020
const users = await adapter.findAll(User, { age: 30 })
2121
assert.debug('found', JSON.stringify(users, null, 2))
@@ -120,7 +120,7 @@ module.exports = function (options) {
120120

121121
props = { content: 'test2', postId: post[Post.idAttribute], userId: post.userId }
122122
assert.debug('create', props)
123-
let comment = await adapter.create(Comment, props)
123+
const comment = await adapter.create(Comment, props)
124124
assert.debug('created', JSON.stringify(comment, null, 2))
125125

126126
props = { name: 'Sally' }
@@ -135,7 +135,7 @@ module.exports = function (options) {
135135

136136
props = { content: 'test67', postId: post2[Post.idAttribute], userId: post2.userId }
137137
assert.debug('create', props)
138-
let comment2 = await adapter.create(Comment, props)
138+
const comment2 = await adapter.create(Comment, props)
139139
assert.debug('created', JSON.stringify(comment2, null, 2))
140140

141141
assert.debug('findAll')
@@ -168,7 +168,7 @@ module.exports = function (options) {
168168

169169
props = { content: 'test2', postId: post[Post.idAttribute], userId: post.userId }
170170
assert.debug('create', props)
171-
let comment = await adapter.create(Comment, props)
171+
const comment = await adapter.create(Comment, props)
172172
assert.debug('created', JSON.stringify(comment, null, 2))
173173

174174
props = { name: 'Sally' }
@@ -183,7 +183,7 @@ module.exports = function (options) {
183183

184184
props = { content: 'test67', postId: post2[Post.idAttribute], userId: post2.userId }
185185
assert.debug('create', props)
186-
let comment2 = await adapter.create(Comment, props)
186+
const comment2 = await adapter.create(Comment, props)
187187
assert.debug('created', JSON.stringify(comment2, null, 2))
188188

189189
assert.debug('find')

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ module.exports = {
1515
}
1616
]
1717
}
18-
};
18+
}

0 commit comments

Comments
 (0)