Skip to content

Commit

Permalink
Move configs in test folder
Browse files Browse the repository at this point in the history
  • Loading branch information
upgundecha committed Jul 6, 2024
1 parent c13e5d2 commit a918989
Show file tree
Hide file tree
Showing 6 changed files with 1,082 additions and 554 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
node-version: '16.x'

- name: Run Checklist
shell: 'script -q -e -c "bash {0}"'
run: npm ci && npx eslint test/. && npm run test
shell: 'cd test && script -q -e -c "bash {0}"'
run: npm ci && npx eslint . && npm run test

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/node_modules
node_modules
6 changes: 3 additions & 3 deletions .eslintrc.js → test/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
'env': {
'es2021': true,
'node': true,
'mocha': true
'mocha': true,
},
'extends': [
'google',
Expand All @@ -13,6 +13,6 @@ module.exports = {
},
'rules': {
'new-cap': 0,
'require-jsdoc': 0
}
'require-jsdoc': 0,
},
};
2 changes: 1 addition & 1 deletion test/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ chai.use(require('chai-string'));

const expect = chai.expect;

const srcMd = fs.readFileSync('README.md', 'utf8');
const srcMd = fs.readFileSync('../README.md', 'utf8');

describe('Checklist', function() {
describe('Header', function() {
Expand Down
Loading

0 comments on commit a918989

Please sign in to comment.