1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
'use strict'
var test = require('tap').test
var unsupported = require('../../lib/utils/unsupported.js')
var versions = [
// broken unsupported
['v0.1.103', true, true],
['v0.2.0', true, true],
['v0.3.5', true, true],
['v0.4.7', true, true],
['v0.5.3', true, true],
['v0.6.17', true, true],
['v0.7.8', true, true],
['v0.8.28', true, true],
['v0.9.6', true, true],
['v0.10.48', true, true],
['v0.11.16', true, true],
['v0.12.9', true, true],
['v1.0.1', true, true],
['v1.6.0', true, true],
['v2.3.1', true, true],
['v3.0.0', true, true],
['v4.5.0', true, true],
['v4.8.4', false, false],
['v5.7.1', false, true],
['v6.8.1', false, false],
['v7.0.0-beta23', false, false],
['v7.2.3', false, false],
['v8.4.0', false, false]
]
test('versions', function (t) {
t.plan(versions.length * 2)
versions.forEach(function (verinfo) {
var version = verinfo[0]
var broken = verinfo[1]
var unsupp = verinfo[2]
var nodejs = unsupported.checkVersion(version)
t.is(nodejs.broken, broken, version + ' ' + (broken ? '' : 'not ') + 'broken')
t.is(nodejs.unsupported, unsupp, version + ' ' + (unsupp ? 'unsupported' : 'supported'))
})
t.done()
})
|