diff --git a/src/bin/addAssertions.js b/src/bin/addAssertions.js index c87d7fda..8a08486b 100644 --- a/src/bin/addAssertions.js +++ b/src/bin/addAssertions.js @@ -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'); @@ -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');