Skip to content

Commit

Permalink
Rename test to match tested file and remove impossible test case
Browse files Browse the repository at this point in the history
  • Loading branch information
delawski committed Oct 27, 2021
1 parent 4b4d7ea commit bd39a6e
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
import { getPluginSlugFromFile } from '../get-plugin-slug-from-file';

describe( 'getPluginSlugFromFile', () => {
it( 'should return an empty string if no path is provided', () => {
expect( getPluginSlugFromFile() ).toBe( '' );
} );

it( 'should return correct plugin slug', () => {
expect( getPluginSlugFromFile( 'foo' ) ).toBe( 'foo' );
expect( getPluginSlugFromFile( 'foo.php' ) ).toBe( 'foo' );
Expand Down

0 comments on commit bd39a6e

Please sign in to comment.