- July 31st 2020, 3:50:18 pm
+ July 31st 2020, 4:35:40 pm
Last updated
diff --git a/test/orm/model-has-many.spec.ts b/test/orm/model-has-many.spec.ts
index c4987b90..7f36e7d5 100644
--- a/test/orm/model-has-many.spec.ts
+++ b/test/orm/model-has-many.spec.ts
@@ -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)