Skip to content

Commit

Permalink
#4 resourceImplementOptionsMethod Test finished without running any a…
Browse files Browse the repository at this point in the history
…ssertions
  • Loading branch information
zephyrec committed Apr 20, 2017
1 parent 4f65111 commit 56c3371
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resource-implement-options-method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ export function resourceImplementOptionsMethod(
t: restHalTestContext.IRestHalTestContext): superTest.Test {
let request = t.context.agent.options(t.context.resource);

return request.expect(200);
return request.expect((res) => {
t.true(res.status >= 200 && res.status < 400);
});
}

0 comments on commit 56c3371

Please sign in to comment.