Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Apr 13, 2024
1 parent 6a7ba84 commit e68965b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions .badges/file-count.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions .badges/lines-of-code.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 10 additions & 20 deletions test/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,40 +629,30 @@ describe('Server', () => {
.expect('Content-Type', /json/)
.expect([
{
id: VALID_AUTH.user_id,
name: VALID_AUTH.name,
event_id: 1,
business_id: businessId,
user_id: VALID_AUTH.user_id,
timestamp: '0',
status: 'teststatus',
role: 'owner',
email: VALID_AUTH.email,
custom_data: '{}',
},
{
id: 'testuid',
name: 'testname',
event_id: 1,
business_id: businessId,
user_id: 'testuid',
timestamp: '0',
status: 'teststatus',
role: 'user',
email: 'testemail',
custom_data: '{}',
},
{
name: VALID_AUTH.name,
id: VALID_AUTH.user_id,
role: 'owner',
email: VALID_AUTH.email,
custom_data: '{}',
id: 'testuid',
event_id: 1,
status: 'teststatus',
timestamp: '0',
},
{
name: 'testname',
id: 'testuid',
role: 'user',
email: 'testemail',
custom_data: '{}',
id: VALID_AUTH.user_id,
event_id: 1,
status: 'teststatus',
timestamp: '0',
},
]);
});
Expand Down

0 comments on commit e68965b

Please sign in to comment.