Skip to content
Myr

Speed up 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 52a933d · Browse files · 3 files+3 added−3 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+3 added−3 removed

  • tests:+3 added−3 removed

3 files+3 added−3 removed

modified:test/async.test.js+1 added-1 removed
modified:test/index.test.js+1 added-1 removed
76 unmodified lines
77 expect(nanoidA()).toEqual('aaaaa')78 })7980 it('has flat distribution', () => {81 let COUNT = 100 * 100081 let COUNT = 50 * 100082 let LENGTH = 3083 let ALPHABET = 'abcdefghijklmnopqrstuvwxyz'84 let nanoid2 = customAlphabet(ALPHABET, LENGTH)85
71 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 = 100 * 100034 let COUNT = 50 * 100035 let LENGTH = nanoid().length3637 let chars = { }38 for (let i = 0; i < COUNT; i++) {
53 unmodified lines