Commit c596f96 1 parent 2250013 commit c596f96 Copy full SHA for c596f96
File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ const toThrowMatchers = [
37
37
38
38
const validTestCases : string [ ] = [
39
39
...[
40
- 'expect(Console.prototype.log)' ,
41
40
'expect(Console.prototype.log).toHaveBeenCalledTimes(1);' ,
42
41
'expect(Console.prototype.log).not.toHaveBeenCalled();' ,
43
42
'expect(Console.prototype.log).toStrictEqual(somethingElse);' ,
@@ -55,6 +54,19 @@ const validTestCases: string[] = [
55
54
] ;
56
55
57
56
const invalidTestCases : Array < TSESLint . InvalidTestCase < MessageIds , Options > > = [
57
+ {
58
+ code : dedent `
59
+ ${ ConsoleClassAndVariableCode }
60
+
61
+ expect(Console.prototype.log)
62
+ ` ,
63
+ errors : [
64
+ {
65
+ line : 9 ,
66
+ messageId : 'unbound' ,
67
+ } ,
68
+ ] ,
69
+ } ,
58
70
{
59
71
code : 'expect(Console.prototype.log).toHaveBeenCalledTimes' ,
60
72
errors : [
You can’t perform that action at this time.
0 commit comments