mirror of
https://github.com/bvanroll/yahoo-thing.git
synced 2025-08-29 12:02:48 +00:00
euh
This commit is contained in:
15
node_modules/saslprep/test/util.js
generated
vendored
Normal file
15
node_modules/saslprep/test/util.js
generated
vendored
Normal 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))
|
||||
})
|
Reference in New Issue
Block a user