diff --git a/assets/src/common/helpers/test/get-plugin-slug-from-path.js b/assets/src/common/helpers/test/get-plugin-slug-from-file.js similarity index 78% rename from assets/src/common/helpers/test/get-plugin-slug-from-path.js rename to assets/src/common/helpers/test/get-plugin-slug-from-file.js index 4d5fe9990b7..4d4813448fe 100644 --- a/assets/src/common/helpers/test/get-plugin-slug-from-path.js +++ b/assets/src/common/helpers/test/get-plugin-slug-from-file.js @@ -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' );