Skip to content

Commit

Permalink
test(eslintrc): fix test with exact path for parser
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelmokos committed Apr 3, 2019
1 parent 516756b commit c540970
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/eslint-config-ableneo/src/eslintrc.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// @flow
import fs from "fs";

it("match eslintrc", () => {
const text = fs.readFileSync("./src/output/eslintrc.json", "utf8");
const text = JSON.parse(
fs.readFileSync("./src/output/eslintrc.json", "utf8"),
);
text.parser = text.parser.replace(/\S*node_modules/, "./node_modules");

expect(text).toMatchSnapshot();
});
Expand Down

0 comments on commit c540970

Please sign in to comment.