mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-30 19:17:04 -05:00
80d038bd61
* Add test to make sure version that are tested are mentioned in the README * fix lint
16 lines
577 B
JavaScript
16 lines
577 B
JavaScript
/* 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`)
|
|
})
|
|
})
|
|
}
|