* recognize waitForAsync as test-statement in Angular * Add changelog_unreleased entry Co-authored-by: Hendrik Nijmeijer <hendrik@hendriknijmeijer.nl>
452 B
452 B
Recognize waitForAsync as test-statement in Angular (#11992 by @HendrikN)
// Input
test("foo bar", waitForAsync(() => {
const foo = "bar";
expect(foo).toEqual("bar")
}));
// Prettier stable
test(
"foo bar",
waitForAsync(() => {
const foo = "bar";
expect(foo).toEqual("bar");
})
);
// Prettier main
test("foo bar", waitForAsync(() => {
const foo = "bar";
expect(foo).toEqual("bar");
}));