Skip to content
Myr

Fix test 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 cb3626d · Browse files · 1 file+8 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+8 added−1 removed

  • tests:+8 added−1 removed

1 file+8 added−1 removed

modified:test/index.test.js+8 added-1 removed
1import { equal, match, notEqual, ok } from 'node:assert'1import { equal, match, notEqual, ok, throws } from 'node:assert'2import { after, before, describe, test } from 'node:test'34import * as browser from '../index.browser.js'5import * as node from '../index.js'
203 unmodified lines
209 let id1 = nanoid()210 let id2 = nanoid(makeProxyNumberToReproducePreviousID())211 notEqual(id1, id2)212 })213214 test(`${type} / customAlphabet / does not fall in infinite loop`, () => {215 let generateId = customAlphabet('abc', 0)216 throws(() => {217 generateId()218 }, /ID size is 0/)219 })220 }221 })222}