mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
Updates node modules
This commit is contained in:
parent
41e60bca0a
commit
3c001dd8e3
1172 changed files with 192787 additions and 0 deletions
17
node_modules/random-iterate/test.js
generated
vendored
Normal file
17
node_modules/random-iterate/test.js
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
var tape = require('tape')
|
||||
var iterate = require('./')
|
||||
|
||||
tape('iterates all', function (t) {
|
||||
var ite = iterate([1, 2, 3, 4, 5, 6, 7, 8, 9])
|
||||
var found = {}
|
||||
|
||||
for (var i = 0; i < 9; i++) {
|
||||
var j = ite()
|
||||
t.ok(!!j, 'not null')
|
||||
if (found[j]) t.ok(false, 'duplicate')
|
||||
found[j] = true
|
||||
}
|
||||
|
||||
t.ok(!ite(), 'no more')
|
||||
t.end()
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue