@@ -41,6 +41,11 @@ ruleTester.run('no-accidental-space', rule, {
4141 errors : [ { messageId : 'accidentalSpace' , column : 10 , line : 1 } ] ,
4242 output : 'describe("foo foe fum", function () {})' ,
4343 } ,
44+ {
45+ code : 'describe("foo foe fum ", function () {})' ,
46+ errors : [ { messageId : 'accidentalSpace' , column : 10 , line : 1 } ] ,
47+ output : 'describe("foo foe fum", function () {})' ,
48+ } ,
4449 {
4550 code : 'fdescribe(" foo", function () {})' ,
4651 errors : [ { messageId : 'accidentalSpace' , column : 11 , line : 1 } ] ,
@@ -66,6 +71,11 @@ ruleTester.run('no-accidental-space', rule, {
6671 errors : [ { messageId : 'accidentalSpace' , column : 5 , line : 1 } ] ,
6772 output : 'fit("foo", function () {})' ,
6873 } ,
74+ {
75+ code : 'fit("foo ", function () {})' ,
76+ errors : [ { messageId : 'accidentalSpace' , column : 5 , line : 1 } ] ,
77+ output : 'fit("foo", function () {})' ,
78+ } ,
6979 {
7080 code : 'xit(" foo", function () {})' ,
7181 errors : [ { messageId : 'accidentalSpace' , column : 5 , line : 1 } ] ,
@@ -86,11 +96,21 @@ ruleTester.run('no-accidental-space', rule, {
8696 errors : [ { messageId : 'accidentalSpace' , column : 6 , line : 1 } ] ,
8797 output : 'test(`foo bar bang`, function () {})' ,
8898 } ,
99+ {
100+ code : 'test(` foo bar bang `, function () {})' ,
101+ errors : [ { messageId : 'accidentalSpace' , column : 6 , line : 1 } ] ,
102+ output : 'test(`foo bar bang`, function () {})' ,
103+ } ,
89104 {
90105 code : 'xtest(" foo", function () {})' ,
91106 errors : [ { messageId : 'accidentalSpace' , column : 7 , line : 1 } ] ,
92107 output : 'xtest("foo", function () {})' ,
93108 } ,
109+ {
110+ code : 'xtest(" foo ", function () {})' ,
111+ errors : [ { messageId : 'accidentalSpace' , column : 7 , line : 1 } ] ,
112+ output : 'xtest("foo", function () {})' ,
113+ } ,
94114 {
95115 code : `
96116 describe(' foo', () => {
0 commit comments