Skip to content

Commit

Permalink
fix: correct addAssertions path
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 28, 2018
1 parent a04d49e commit 0d664d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/addAssertions.js
Expand Up @@ -36,7 +36,7 @@ const formatCodeSnippet = (setup) => {
};

const getAssertions = () => {
const assertionFiles = glob.sync(path.resolve(__dirname, './../tests/rules/assertions/*.js'));
const assertionFiles = glob.sync(path.resolve(__dirname, '../../tests/rules/assertions/*.js'));

const assertionNames = _.map(assertionFiles, (filePath) => {
return path.basename(filePath, '.js');
Expand All @@ -56,7 +56,7 @@ const getAssertions = () => {
};

const updateDocuments = (assertions) => {
const readmeDocumentPath = path.join(__dirname, './../README.md');
const readmeDocumentPath = path.join(__dirname, '../../README.md');
let documentBody;

documentBody = fs.readFileSync(readmeDocumentPath, 'utf8');
Expand Down

0 comments on commit 0d664d8

Please sign in to comment.