Created
December 13, 2017 15:07
-
-
Save satadii11/93dfcca31338a1df23267d4a0f123bab 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
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