We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
According to the new-line-before-expect documentation, the following is not a warning:
describe("", function() { it("", function() { expect(1).toBe(1); }); });
However I'm receiving a warning for this line of code, which has the same structure.
of(null).subscribe(() => expect(spy).toHaveBeenCalled() );
but if I add braces, it doesn't fail:
of(null).subscribe(() =>{ expect(spy).toHaveBeenCalled(); });
To Reproduce
create a test which does a subscription with a single line expectation in a body without braces.
Expected behaviour
should not display warning
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
According to the new-line-before-expect documentation, the following is not a warning:
describe("", function() {
it("", function() {
expect(1).toBe(1);
});
});
However I'm receiving a warning for this line of code, which has the same structure.
of(null).subscribe(() =>
expect(spy).toHaveBeenCalled()
);
but if I add braces, it doesn't fail:
of(null).subscribe(() =>{
expect(spy).toHaveBeenCalled();
});
To Reproduce
create a test which does a subscription with a single line expectation in a body without braces.
Expected behaviour
should not display warning
The text was updated successfully, but these errors were encountered: