assert-transform
v1.0.0
Published
Return a promise asserting that `babelTransform(actual) === expected`
Downloads
6
Maintainers
Readme
assert-transform
Return a promise asserting that babelTransform(actual) === expected
var assertTransform = require("assert-transform");
var path = require("path");
describe("babel-plugin-emojification", function () {
it("does what I think it'll do", function () {
// Yes, you can just return a promise in a mocha test. Cool right!?
return assertTransform(
path.join(__dirname, "./emojify/actual.js"),
path.join(__dirname, "./emojify/expected.js"), BABEL_OPTIONS);
});
});
Note: You must pass in the full path to your files. This is just because I'm tired of working on this and haven't made relative paths work. PRs welcome.