-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt JavaScript Standard Style also for tests
- Loading branch information
Showing
15 changed files
with
730 additions
and
717 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
require('./common.cjs') | ||
/* global describe, it, agent, assert */ | ||
|
||
describe('Events', function() { | ||
require('./common.cjs') | ||
|
||
it('Add events', async()=> { | ||
describe('Events', function () { | ||
it('Add events', async () => { | ||
const res1 = await agent | ||
.post(`${host}/api/v1/events`) | ||
.set('Authorization',`Bearer ${global.userJWT}`) | ||
.send({event: 1, entity: 1, entityid: '1'}) | ||
.catch(v=>v) | ||
.post(`${global.host}/api/v1/events`) | ||
.set('Authorization', `Bearer ${global.userJWT}`) | ||
.send({ event: 1, entity: 1, entityid: '1' }) | ||
.catch(v => v) | ||
|
||
assert.strictEqual(res1.status, 201) | ||
}) | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.