Skip to content

Commit

Permalink
Simplify the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bidoubiwa committed Jun 22, 2022
1 parent ca8e079 commit 0aa0749
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/keys.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(
expect(key).toBeDefined()
expect(key).toHaveProperty('description', 'Indexing Products API key')
expect(key).toHaveProperty('uid', uid)
expect(key).toHaveProperty('key')
expect(key).toHaveProperty('actions')
expect(key).toHaveProperty('indexes')
expect(key).toHaveProperty('expiresAt', null)
expect(key).toHaveProperty('createdAt')
expect(key).toHaveProperty('updatedAt')
})

test(`${permission} key: create key with an expiresAt`, async () => {
Expand All @@ -120,12 +115,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Private' }])(

expect(key).toBeDefined()
expect(key).toHaveProperty('description', 'Indexing Products API key')
expect(key).toHaveProperty('key')
expect(key).toHaveProperty('actions', ['documents.add'])
expect(key).toHaveProperty('indexes')
expect(key).toHaveProperty('expiresAt', '2050-11-13T00:00:00Z')
expect(key).toHaveProperty('createdAt')
expect(key).toHaveProperty('updatedAt')
})

test(`${permission} key: update a key`, async () => {
Expand Down

0 comments on commit 0aa0749

Please sign in to comment.