Skip to content

Commit faf13ee

Browse files
committed
Add test to verify no-identical-title supports same titles in different suites
1 parent 7cea27f commit faf13ee

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

source/rules/no-identical-title.test.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,16 @@ ruleTester.run('no-identical-title', noIdenticalTitleRule, {
125125
additionalCustomNames: [{ name: 'foo', type: 'suite', interface: 'BDD' }]
126126
}
127127
}
128-
}
128+
},
129+
[
130+
'describe("describe 1", function() {',
131+
' it("it", function() {});',
132+
'});',
133+
'describe("describe 2", function() {',
134+
' it("it", function() {});',
135+
'});'
136+
]
137+
.join('\n')
129138
],
130139

131140
invalid: [

0 commit comments

Comments
 (0)