Skip to content

Instantly share code, notes, and snippets.

@satadii11
Created December 13, 2017 15:07
Show Gist options
  • Save satadii11/93dfcca31338a1df23267d4a0f123bab to your computer and use it in GitHub Desktop.
Save satadii11/93dfcca31338a1df23267d4a0f123bab to your computer and use it in GitHub Desktop.
const app = require('../app');
const request = require('supertest')(app);
const HEADER = {
Token: 'foo',
};
const DUMMY = {
id: 2,
name: 'Coba'
};
describe('POST /', () => {
it('just test', done => {
request.post(`/`)
.send(DUMMY)
.set(HEADER)
.end((err, res) => {
expect(err).toBeNull();
done();
});
}, 60000);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment