1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

chore: spec fixed

This commit is contained in:
2022-08-01 22:54:31 +05:00
parent 7e504008b7
commit 37e1aa9b61

View File

@@ -514,13 +514,15 @@ describe('permission', () => {
setting: PermissionSettingForRoute.grant
})
const permissionCount = 1
const res = await request(app)
.get('/SASjsApi/permission/')
.auth(accessToken, { type: 'bearer' })
.send()
.expect(200)
expect(res.body).toHaveLength(1)
expect(res.body).toHaveLength(permissionCount)
})
})