1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-13 15:55:57 +00:00
Files
homebrewery/test/brew.apitest.js
Scott Tolksdorf 3dc4c13178 Something is up
2017-01-22 12:45:46 -05:00

28 lines
390 B
JavaScript

const request = require('supertest-as-promised');
const app = require('../server.js');
const apiPath = '/api/brew';
describe('/api/brew', () => {
describe('POST', () => {
it('creates a new brew', () => {
return request(app)
.post(apiPath)
.send({
text : 'Brew Text'
})
.expect(200)
.then((res) => {
console.log(res.body);
});
});
});
});