Skip to content

Commit 629fec3

Browse files
committed
.
1 parent a36c38c commit 629fec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/fruits-integration-test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ function runTests (route) {
8787

8888
// POST a fruit
8989
test('POST /api/fruit/ - send non json', t => {
90-
t.plan(4);
9190
const fruitData = '{name: \'Banana\', stock: \'10\'}';
9291

9392
supertest(route)
9493
.post('/api/fruits')
9594
.send(fruitData)
96-
.expect(415)
95+
.expect(422)
9796
.then(response => {
9897
console.log(response);
98+
t.pass('should fail with 422');
9999
t.end();
100100
});
101101
});

0 commit comments

Comments
 (0)