Skip to content
Myr

Improve old Node.js CI test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent b9318cf · Browse files · 1 file+5 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−2 removed

  • tests:+5 added−2 removed

1 file+5 added−2 removed

modified:test/ci+5 added-2 removed
1#!/usr/bin/env node2/* eslint-disable global-require, no-inner-declarations */34if (parseInt(process.versions.node) >= 6 && false) {4if (parseInt(process.versions.node) >= 6) {5 var spawn = require('child_process').spawn67 spawn('npm', ['test'], { stdio: 'inherit' }).on('exit', function (code) {8 if (code > 0) process.exit(code)
13 unmodified lines
22 assert.ok(url.indexOf(id[j]) !== -1)23 }24 assert.ok(!used[id])25 used[id] = true26 process.stdout.write('✔')27 }2828 for (var i = 0; i < 1000; i++) {29 for (var i = 0; i < 100; i++) {30 test(nanoid())31 test(nonSecure())32 async(21, function (err, id) {33 assert.ok(err === null)34 test(id)35 })36 }3738 assert.ok(nanoid(10).length === 10)39 assert.ok(nonSecure(10).length === 10)40 async(10, function (err, id) {41 assert.ok(err === null)42 assert.ok(id.length === 10)43 })44 process.stdout.write('✔')45}