Skip to content

Commit

Permalink
Throw an error for unsupport template type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Feb 11, 2022
1 parent fe4f44e commit f2d3f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/e2e-test-utils/src/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function deleteAllTemplates( type ) {
const path = PATH_MAPPING[ type ];

if ( ! path ) {
return;
throw new Error( `Unsupported template type: ${ type }.` );
}

const templates = await rest( { path } );
Expand Down

0 comments on commit f2d3f4e

Please sign in to comment.