Skip to content
Myr

Try to fix coverage

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 d64ae77 · Browse files · 3 files+5 added−5 removed
This commit

State

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

Diff stats

3 files+5 added−5 removed

  • tests:+5 added−5 removed

3 files+5 added−5 removed

modified:test/async.test.js+3 added-3 removed
modified:test/index.test.js+1 added-1 removed
36 unmodified lines
37 })3839 it('has no collisions', () => {40 let used = { }41 for (let i = 0; i < 100 * 1000; i++) {41 for (let i = 0; i < 50 * 1000; i++) {42 let id = nanoid()43 expect(used[id]).toBeUndefined()44 used[id] = true45 }
111 unmodified lines
modified:test/non-secure.test.js+1 added-1 removed
29 unmodified lines
30 }31 })3233 it('has flat distribution', () => {34 let COUNT = 50 * 100034 let COUNT = 100 * 100035 let LENGTH = nanoid().length3637 let chars = { }38 for (let i = 0; i < COUNT; i++) {
53 unmodified lines