/** * @license Use of this source code is governed by an MIT-style license that * can be found in the LICENSE file at https://github.com/cartant/rxjs-etc */ /*tslint:disable:no-unused-expression*/ import { marbles } from "rxjs-marbles"; import { fromIterable } from "./fromIterable"; describe("fromIterable", () => { it( "should accept an iterable", marbles((m) => { const map = new Map(); map.set("a", 1); map.set("b", 2); map.set("c", 3); const expected = m.cold("(abc|)"); const destination = fromIterable(map.keys()); m.expect(destination).toBeObservable(expected); }) ); });