mirror of
https://github.com/flynx/types.js.git
synced 2025-10-28 10:00:08 +00:00
more tests...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1b99935c4e
commit
092bed0d85
11
test.js
11
test.js
@ -172,6 +172,17 @@ var cases = test.Cases({
|
||||
.iter(function(e){
|
||||
return [] }),
|
||||
} },
|
||||
/* XXX does not account forpromises as input...
|
||||
iter_flat: async function(assert, setup){
|
||||
return {
|
||||
input: setup.input instanceof Array ?
|
||||
(await Promise.all(setup.input)).flat()
|
||||
: [await setup.input],
|
||||
output: setup.output
|
||||
.iter(function(e){
|
||||
return e }),
|
||||
} },
|
||||
//*/
|
||||
|
||||
map_asis: function(assert, setup){
|
||||
setup.output = setup.output
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user