Last active
February 15, 2019 13:47
-
-
Save jomaora/d5c6e4e9ebdde86dc1462bdb19700346 to your computer and use it in GitHub Desktop.
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
test('POST /repository/demo3/skills > should get 201 and create a new ressource', async t => { | |
const body = { | |
ref: '123', | |
locales: { | |
fr: {name: 'Littérature'}, | |
en: {name: 'Literature'} | |
} | |
}; | |
const app = createServer(); // function having the express application with the exegesis-swagger | |
const agent = supertest(); | |
await agent | |
.post('/api/v2/repository/demo3/skills') | |
.send(body) | |
.expect(201); | |
// another validations | |
t.pass(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment