Quick improvements to test

This commit is contained in:
Unmesh Gundecha
2021-02-21 17:50:23 +08:00
parent e48975f974
commit 5d0dd058c2
2 changed files with 30 additions and 26 deletions

View File

@@ -9,14 +9,16 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: markdown lit
uses: nosborn/github-action-markdown-cli@v1.1.1
with:
files: README.md
config_file: ".markdownlint.json"
- name: tests
- name: Checklist
uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm ci
- run: npm test
run: npm ci && npm test

View File

@@ -8,6 +8,7 @@ var expect = chai.expect;
const srcMd = fs.readFileSync('README.md', 'utf8');
describe('Checklist', function () {
describe('Header', function () {
it('is intact', function () {
expect(srcMd).to.startsWith('# How they SRE');
@@ -27,7 +28,7 @@ describe('Section Headers', function () {
'## License'
]
var actualList = srcMd.match(/^## (.*$)/gim);
expect(expectedH2List).to.equalTo(actualList)
expect(actualList).to.equalTo(expectedH2List)
});
});
@@ -37,3 +38,4 @@ describe('Organization list', function () {
expect(orgList).to.be.sorted(Intl.Collator().compare);
});
});
});