working trigger editor

This commit is contained in:
ari committed 2021-12-21 22:46:16 -05:00
1 parent 3cfb8151eb
commit 24f7c3c3af
14 files changed
+250 -66

No files matched your search

+12 -1
View File
@@ -1,4 +1,4 @@
import { IteratorWrap } from "./iter"
import { chain, IteratorWrap } from "./iter"
test('it wraps a simple iter', () => {
@@ -23,3 +23,14 @@ test('it wraps a simple iter while being nested', () => {
expect(data).toEqual(['2'])
expect(wit.returnValue).toEqual(true)
})
test('chain multiple iterators', () => {
function* makeIt1() {
yield "one"
}
function* makeIt2() {
yield "two"
}
const data = Array.from(chain([makeIt1(), makeIt2()]));
expect(data).toEqual(['one', 'two']);
})