Skip to content

Commit c1ab9c0

Browse files
committed
better post test
1 parent 9863a10 commit c1ab9c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/integration/posts.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ describe("Posts", () => {
4040
it("should create a new post", function* (driver, done) {
4141
var list = fixtures.home();
4242
server.get("/api/posts/tester", list);
43-
server.post("/api/posts", {id: 100, content: 'new post here', username: 'tester' });
43+
server.post("/api/posts",
44+
{id: 100, content: 'new post here', username: 'tester'}, // return this content
45+
{content: 'new post here'} // expect this content
46+
);
4447

4548
yield bootstrap().login().launch(driver);
4649

0 commit comments

Comments
 (0)