Skip to content

Commit

Permalink
Increase strict-null-checks patch test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
DSoko2 committed Mar 7, 2021
1 parent 009c49e commit 163328b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/testing.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert } from "chai";
import * as H from "../src";
import { Behavior, Stream, Now } from "../src";
import { Behavior, Stream, Now, never, DelayStream } from "../src";
import {
testFuture,
assertFutureEqual,
Expand Down Expand Up @@ -232,10 +232,10 @@ describe("testing", () => {
assertStreamEqual(from3, { 4: 2, 6: 5, 7: 6 });
});
});
describe.skip("delay", () => {
describe("delay", () => {
it("delays occurrences", () => {
const s = testStreamFromObject({ 1: 1, 2: 1, 4: 2, 6: 3, 7: 1 });
const res = testNow(H.delay(3, s));
const res = testNow(H.delay(3, s), [new DelayStream(s, 3)]);
assertStreamEqual(res, { 4: 1, 5: 1, 7: 2, 9: 3, 10: 1 });
});
});
Expand All @@ -245,7 +245,8 @@ describe("testing", () => {
0: testFuture(1, "a"),
2: testFuture(5, "b"),
4: testFuture(2, "c"),
6: testFuture(7, "d")
6: testFuture(7, "d"),
8: never
});
const res = testNow(H.flatFutures(s), []);
assert(H.isStream(res));
Expand Down

0 comments on commit 163328b

Please sign in to comment.