Skip to content

Commit

Permalink
fix: failed CI due to prettier upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
chinesedfan authored and zimme committed Jun 12, 2019
1 parent e8f6256 commit 2433f68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/__mocks__/fs.js
Expand Up @@ -2,7 +2,7 @@ const fs = require.requireActual("fs");
module.exports = Object.assign({}, fs, {
readFileSync: jest.fn(filename => {
if (/package\.json$/.test(filename)) {
return '{"name": "fake", "version": "0.0.0"}';
return '{"name": "fake", "version": "0.0.0", "prettier": {}}';
} else if (/\.(j|t)s$/.test(filename)) {
return "var fake = true";
}
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/index.js
Expand Up @@ -181,11 +181,11 @@ const tests = [
}
},
text:
'<template>\n</template>\n<script>\nfunction foo() { return "foo" }\n</script>\n<style>\n</style>',
'<template>\n <div></div>\n</template>\n<script>\nfunction foo() { return "foo" }\n</script>\n<style>\n</style>',
filePath: path.resolve("./test.vue")
},
output:
'<template>\n</template>\n<script>\nfunction foo () {\n return "foo";\n}\n</script>\n<style>\n</style>'
'<template>\n <div></div>\n</template>\n<script>\nfunction foo () {\n return "foo";\n}\n</script>\n<style></style>'
},
{
title: "GraphQL example",
Expand Down

0 comments on commit 2433f68

Please sign in to comment.