Skip to content

Commit

Permalink
style: format source files
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jul 31, 2020
1 parent dc62011 commit 269697a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion npm-audit.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h5 class="card-title">
<div class="card">
<div class="card-body">
<h5 class="card-title">
July 31st 2020, 3:50:18 pm
July 31st 2020, 4:35:40 pm
</h5>
<p class="card-text">Last updated</p>
</div>
Expand Down
8 changes: 5 additions & 3 deletions test/orm/model-has-many.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1620,9 +1620,11 @@ test.group('Model | HasMany | withCount', (group) => {

User.boot()

const users = await User.query().withCount('posts', (query) => {
query.as('totalPosts')
}).orderBy('id', 'asc')
const users = await User.query()
.withCount('posts', (query) => {
query.as('totalPosts')
})
.orderBy('id', 'asc')

assert.lengthOf(users, 2)
assert.deepEqual(users[0].$extras.totalPosts, 2)
Expand Down

0 comments on commit 269697a

Please sign in to comment.