This commit is contained in:
2019-01-25 01:39:48 +01:00
commit 41ac3fb32a
3269 changed files with 396937 additions and 0 deletions

15
node_modules/saslprep/test/util.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
import { setFlagsFromString } from 'v8'
import { range } from '../lib/util'
import test from 'ava'
// 984 by default.
setFlagsFromString('--stack_size=500')
test('should work', (t) => {
const list = range(1, 3)
t.deepEqual(list, [1, 2, 3])
})
test('should work for large ranges', (t) => {
t.notThrows(() => range(1, 1e6))
})