Last active
November 6, 2015 03:10
-
-
Save seanchas116/1f2a309f7779f2766804 to your computer and use it in GitHub Desktop.
こういうテストフレームワークほしい
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import assert from "power-assert"; | |
import tapSpec from "tap-spec"; | |
const test = new Test(); | |
const {describe, it} = test; | |
describe("foo", () => { | |
describe(".bar", () => { | |
it("fetches bar", async () => { | |
const result = await foo.bar(); | |
assert(result === "bar"); | |
}); | |
}); | |
}); | |
const result = test.run(); | |
result.stream | |
.pipe(tapSpec()) | |
.pipe(process.stdout); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment