Skip to content

Commit

Permalink
Merge pull request #3 from LinusU/prefer-const
Browse files Browse the repository at this point in the history
Prefer const over let
  • Loading branch information
crobinson42 authored Nov 21, 2018
2 parents 0800654 + 9a52c04 commit 89eb9f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/findAll.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (options) {
})

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

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

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

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

assert.debug('findAll')
Expand Down Expand Up @@ -168,7 +168,7 @@ module.exports = function (options) {

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

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

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

assert.debug('find')
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ module.exports = {
}
]
}
};
}

0 comments on commit 89eb9f5

Please sign in to comment.