8787 }
8888)
8989
90- Then ( / ^ i t p a s s e s $ / , ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
90+ Then ( ' it passes' , ( ) => { } ) // eslint-disable-line @typescript-eslint/no-empty-function
9191
92- Then ( / ^ i t f a i l s $ / , function ( this : World ) {
92+ Then ( ' it fails' , function ( this : World ) {
9393 const actualCode : number = doesHaveValue ( this . lastRun . error )
9494 ? this . lastRun . error . code
9595 : 0
@@ -101,13 +101,13 @@ Then(/^it fails$/, function (this: World) {
101101 this . verifiedLastRunError = true
102102} )
103103
104- Then ( / ^ i t o u t p u t s t h e t e x t : $ / , function ( this : World , text : string ) {
104+ Then ( ' it outputs the text:' , function ( this : World , text : string ) {
105105 const actualOutput = normalizeText ( this . lastRun . output )
106106 const expectedOutput = normalizeText ( text )
107107 expect ( actualOutput ) . to . eql ( expectedOutput )
108108} )
109109
110- Then ( / ^ t h e o u t p u t c o n t a i n s t h e t e x t : $ / , function ( this : World , text : string ) {
110+ Then ( ' the output contains the text:' , function ( this : World , text : string ) {
111111 const actualOutput = normalizeText ( this . lastRun . output )
112112 const expectedOutput = normalizeText ( text )
113113 expect ( actualOutput ) . to . include ( expectedOutput )
@@ -123,7 +123,7 @@ Then(
123123)
124124
125125Then (
126- / ^ t h e e r r o r o u t p u t c o n t a i n s t h e t e x t s n i p p e t s : $ / ,
126+ ' the error output contains the text snippets:' ,
127127 function ( this : World , table : DataTable ) {
128128 const actualOutput = normalizeText ( this . lastRun . errorOutput )
129129 table . rows ( ) . forEach ( ( row ) => {
@@ -134,7 +134,7 @@ Then(
134134)
135135
136136Then (
137- / ^ t h e e r r o r o u t p u t c o n t a i n s t h e t e x t : $ / ,
137+ ' the error output contains the text:' ,
138138 function ( this : World , text : string ) {
139139 const actualOutput = normalizeText ( this . lastRun . errorOutput )
140140 const expectedOutput = normalizeText ( text )
@@ -151,13 +151,13 @@ Then(
151151 }
152152)
153153
154- Then ( / ^ I s e e t h e v e r s i o n o f C u c u m b e r $ / , function ( this : World ) {
154+ Then ( ' I see the version of Cucumber' , function ( this : World ) {
155155 const actualOutput = this . lastRun . output
156156 const expectedOutput = `${ version as string } \n`
157157 expect ( actualOutput ) . to . eql ( expectedOutput )
158158} )
159159
160- Then ( / ^ I s e e t h e h e l p t e x t f o r C u c u m b e r $ / , function ( this : World ) {
160+ Then ( ' I see the help text for Cucumber' , function ( this : World ) {
161161 const actualOutput = this . lastRun . output
162162 const expectedOutput = 'Usage: cucumber-js'
163163 expect ( actualOutput ) . to . include ( expectedOutput )
0 commit comments