Reputation: 46940
In this code sandbox the following test is executed:
import { of } from "rxjs";
import { map } from "rxjs/operators";
const source = of("World");
test("It should fail", () => {
source.subscribe(x => expect(x).toContain("NOTHING"));
});
Jest reports it as passing, even though the expectation fails. Thoughts?
Upvotes: 6
Views: 2114