fix e2e tests

This commit is contained in:
Ben Irvin 2022-08-18 11:02:24 +02:00
parent 449f982781
commit 7b60783888

View File

@ -138,6 +138,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: body.type,
id: expect.any(Number),
createdAt: expect.any(String),
lastUsed: null,
updatedAt: expect.any(String),
});
});
@ -195,6 +197,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: body.type,
id: expect.any(Number),
createdAt: expect.any(String),
lastUsed: null,
updatedAt: expect.any(String),
});
});
@ -221,6 +225,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: body.type,
id: expect.any(Number),
createdAt: expect.any(String),
lastUsed: null,
updatedAt: expect.any(String),
});
});
@ -271,6 +277,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: body.type,
id: expect.any(Number),
createdAt: expect.any(String),
lastUsed: null,
updatedAt: expect.any(String),
});
});
@ -296,6 +304,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: body.type,
id: expect.any(Number),
createdAt: expect.any(String),
lastUsed: null,
updatedAt: expect.any(String),
});
});
@ -342,6 +352,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: token.type,
id: token.id,
createdAt: token.createdAt,
lastUsed: null,
updatedAt: expect.any(String),
});
});
@ -373,6 +385,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: token.type,
id: token.id,
createdAt: token.createdAt,
lastUsed: null,
updatedAt: expect.any(String),
});
});
@ -395,6 +409,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: token.type,
id: token.id,
createdAt: token.createdAt,
lastUsed: null,
updatedAt: expect.any(String),
});
});
@ -451,7 +467,10 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: updatedBody.type,
id: token.id,
createdAt: token.createdAt,
lastUsed: null,
updatedAt: expect.any(String),
});
// expect(updatedRes.body.data.updated)
});
test('Returns a 404 if the ressource to update does not exist', async () => {
@ -500,6 +519,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: token.type,
id: token.id,
createdAt: token.createdAt,
lastUsed: null,
updatedAt: expect.any(String),
});
});
@ -557,6 +578,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: token.type,
id: token.id,
createdAt: token.createdAt,
lastUsed: null,
updatedAt: expect.any(String),
});
});
@ -581,6 +604,8 @@ describe('Admin API Token v2 CRUD (e2e)', () => {
type: token.type,
id: token.id,
createdAt: token.createdAt,
lastUsed: null,
updatedAt: expect.any(String),
});
});
});