From 58b6ce5dccb8b2b20597f2dee3302466d9bfbe20 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Fri, 23 Mar 2018 14:51:23 -0600 Subject: [PATCH] spellcheck. Thanks @jennifer-shehane :) --- cypress/support/commands.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 7f6dda06..b1c429db 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -9,7 +9,7 @@ Cypress.Commands.add('getByLabelText', (...args) => { return cy .window() .then(({document}) => - getComandWaiter(document, () => + getCommandWaiter(document, () => queries.queryByLabelText(document, ...args), )(), ) @@ -19,11 +19,13 @@ Cypress.Commands.add('getByText', (...args) => { return cy .window() .then(({document}) => - getComandWaiter(document, () => queries.queryByText(document, ...args))(), + getCommandWaiter(document, () => + queries.queryByText(document, ...args), + )(), ) }) -function getComandWaiter(container, fn) { +function getCommandWaiter(container, fn) { return function waiter() { const val = fn() if (val) {