Skip to content

Commit fd60bb4

Browse files
committed
test(linter/expect-expect): add test case for calling expect as return arg
1 parent d7cca12 commit fd60bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/oxc_linter/src/rules/jest/expect_expect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ fn test() {
494494
"#,
495495
None,
496496
),
497-
("it('test', async () => { const array = [1]; for (const element of array) { expect(element).toBe(1); } });", None)
497+
("it('test', async () => { const array = [1]; for (const element of array) { expect(element).toBe(1); } });", None),( r"it('msg', async () => { const r = foo(); return expect(r).rejects.toThrow(); });", None),
498498
];
499499

500500
let mut fail = vec![

0 commit comments

Comments
 (0)