Re-add parseNoPatch function (accidentally removed) (babel/babel-eslint#557)
This commit is contained in:
parent
5d6d52f04e
commit
d33839a9c3
@ -15,3 +15,7 @@ exports.parseForESLint = function(code, options) {
|
||||
patched = true;
|
||||
return { ast: require("./parse-with-patch")(code, options) };
|
||||
};
|
||||
|
||||
exports.parseNoPatch = function(code, options) {
|
||||
return require("./parse")(code, options);
|
||||
};
|
||||
|
||||
@ -531,3 +531,12 @@ describe("babylon-to-esprima", () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("Public API", () => {
|
||||
it("exports a parseNoPatch function", () => {
|
||||
assertImplementsAST(
|
||||
espree.parse("foo"),
|
||||
babelEslint.parseNoPatch("foo", {})
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user