Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import test from "ava";
import { marbles } from "rxjs-marbles/ava";
import { map } from "rxjs/operators";
test(
"should support marble tests without values",
marbles((m, t) => {
t.plan(2);
const source = m.hot(" --^-a-b-c-|");
const subs = " ^-------!";
const expected = m.cold(" --b-c-d-|");
const destination = source.pipe(
map(value => String.fromCharCode(value.charCodeAt(0) + 1))
);
m.expect(destination).toBeObservable(expected);
m.expect(source).toHaveSubscriptions(subs);
})
);
test(
"should support marble tests with values",