-
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test to make sure version that are tested are mentioned in the RE… (
#1276) * Add test to make sure version that are tested are mentioned in the README * fix lint
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint-env mocha */ | ||
|
||
const mc = require('../') | ||
const fs = require('fs') | ||
const assert = require('assert') | ||
const path = require('path') | ||
|
||
const readmeContent = fs.readFileSync(path.join(__dirname, '/../docs/README.md'), { encoding: 'utf8', flag: 'r' }) | ||
|
||
for (const supportedVersion of mc.supportedVersions) { | ||
describe('doc ' + supportedVersion + 'v', function () { | ||
it('mentions the supported version in the readme', () => { | ||
assert.ok(readmeContent.includes(supportedVersion), `${supportedVersion} should be mentionned in the README.md but it is not`) | ||
}) | ||
}) | ||
} |