Skip to content

Commit

Permalink
Merge pull request #4 from adrienjoly/patch-1
Browse files Browse the repository at this point in the history
fix syntax and formatting on examples of readme.md
  • Loading branch information
ysmood committed Dec 7, 2019
2 parents 9d1adec + ae86ef8 commit 461c43d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions readme.md
Expand Up @@ -147,23 +147,23 @@ noe -b junit -w 'test/*.js' -- 'test/*.js'
// We use `it.eq` to assert on both simple type and complex object.
it.eq("ok", "ok")
);

it("test 2", async () => {
// No more callback hell while testing async functions.
await new junit.Promise(r => setTimeout(r, 1000));

return it.eq({ a: 1, b: 2 }, { a: 1, b: 2 });
});

// Run sync tests within the main async flow.
await it("test 3", (after) =>
await it("test 3", (after) => {
after(() => {
// do some clean work after the test
});

it.eq("ok", "ok")
);

return it.eq("ok", "ok");
});
it.run();
})();
```
Expand All @@ -174,7 +174,7 @@ noe -b junit -w 'test/*.js' -- 'test/*.js'
```js
import junit from "junit";
var it = junit({
filter: (msg) => msg.indexOf("test")
filter: (msg) => msg.indexOf("test");
});

(async () => {
Expand Down

0 comments on commit 461c43d

Please sign in to comment.