mirror of
https://github.com/upgundecha/howtheysre
synced 2026-01-04 08:18:02 +00:00
18 lines
560 B
JavaScript
18 lines
560 B
JavaScript
const fs = require('fs');
|
|
const { assert } = require('chai');
|
|
|
|
const srcMd = fs.readFileSync('README.md', 'utf8');
|
|
|
|
describe('Header', function() {
|
|
it('Starts with #', function() {
|
|
assert.isOk(srcMd.startsWith('# How they SRE'), 'Header is broken');
|
|
});
|
|
});
|
|
|
|
describe('Sections', function() {
|
|
['Introduction', 'Organizations', 'Resources', 'Credits', 'Contribute', 'License'] .forEach(function (section) {
|
|
it(`${section}`, function() {
|
|
assert.isOk(srcMd.includes(`## ${section}`), `${section} section is missing`);
|
|
});
|
|
});
|
|
}); |