mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-12-21 04:52:31 -05:00
17 lines
577 B
JavaScript
17 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`)
|
||
|
})
|
||
|
})
|
||
|
}
|