Skip to content

Commit

Permalink
Added tests for the ./ option on files.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredck committed Aug 11, 2020
1 parent e7803e8 commit b52d949
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,18 @@ describe( 'dev-tests/utils', () => {
] );
} );
} );

describe( 'keep ./ paths intact', () => {
it( 'for automated tests', () => {
expect( transformFileOptionToTestGlob( './tests/**/*.js' ) ).to.deep.equal( [
'./tests/**/*.js'
] );
} );

it( 'for manual tests', () => {
expect( transformFileOptionToTestGlob( './tests/**/manual/*.js', true ) ).to.deep.equal( [
'./tests/**/manual/*.js'
] );
} );
} );
} );

0 comments on commit b52d949

Please sign in to comment.