Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
david-szabo97 committed May 12, 2021
1 parent 6513185 commit 854d9e9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
toggleGlobalBlockInserter,
} from '@wordpress/e2e-test-utils';

const checkPatternExistance = async ( name, available = true ) => {
const checkPatternExistence = async ( name, available = true ) => {
await searchForPattern( name );
const patternElement = await page.waitForXPath(
`//div[@role = 'option']//div[contains(text(), '${ name }')]`,
Expand Down Expand Up @@ -38,7 +38,7 @@ describe( 'Allowed Patterns', () => {
describe( 'Disable blocks plugin disabled', () => {
for ( const [ patternName ] of TEST_PATTERNS ) {
it( `should show test pattern "${ patternName }"`, async () => {
expect( await checkPatternExistance( patternName, true ) ).toBe(
expect( await checkPatternExistence( patternName, true ) ).toBe(
true
);
} );
Expand All @@ -63,7 +63,7 @@ describe( 'Allowed Patterns', () => {
shouldBeAvailable ? '' : ' not'
} show test "pattern ${ patternName }"`, async () => {
expect(
await checkPatternExistance(
await checkPatternExistence(
patternName,
shouldBeAvailable
)
Expand Down

0 comments on commit 854d9e9

Please sign in to comment.