Skip to content

Instantly share code, notes, and snippets.

@jomaora
Last active February 15, 2019 13:47
Show Gist options
  • Save jomaora/d5c6e4e9ebdde86dc1462bdb19700346 to your computer and use it in GitHub Desktop.
Save jomaora/d5c6e4e9ebdde86dc1462bdb19700346 to your computer and use it in GitHub Desktop.
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