Skip to content
Myr

Improve old Node.js tests

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 9f8a715 · Browse files · 1 file+7 added−1 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+7 added−1 removed

  • tests:+7 added−1 removed

1 file+7 added−1 removed

modified:test/ci+7 added-1 removed
8 unmodified lines
9 })10} else {11 var assert = require('assert')12 var nonSecure = require('../non-secure')13 var nanoid = require('../')13 var nonSecureGenerate = require('../non-secure/generate')14 var async = require('../async')15 var nanoid = require('../')16 var generate = require('../generate')17 var url = require('../url')1819 var used = { }20 function test (id) {
22 unmodified lines
43 assert.ok(err === null)44 assert.ok(id.length === 10)45 })46 process.stdout.write('✔')4748 assert.ok(generate(url, 10).length === 10)49 assert.ok(nonSecureGenerate(url, 10).length === 10)50 process.stdout.write('✔')51}