Skip to content

Commit 0d664d8

Browse files
committed
fix: correct addAssertions path
1 parent a04d49e commit 0d664d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/addAssertions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const formatCodeSnippet = (setup) => {
3636
};
3737

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

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

5858
const updateDocuments = (assertions) => {
59-
const readmeDocumentPath = path.join(__dirname, './../README.md');
59+
const readmeDocumentPath = path.join(__dirname, '../../README.md');
6060
let documentBody;
6161

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

0 commit comments

Comments
 (0)