From 456c500b9a7f74009d729934d14c1377c51a32d3 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 9 Aug 2023 19:12:21 +0300 Subject: [PATCH] fix: should: typo --- packages/keyword-should/index.js | 2 +- packages/keyword-should/index.spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/keyword-should/index.js b/packages/keyword-should/index.js index de0d62c..49bd072 100644 --- a/packages/keyword-should/index.js +++ b/packages/keyword-should/index.js @@ -37,7 +37,7 @@ export default function newSpeak(Parser) { const node = super.startNode(); if (this.type === tt.braceL) - return this.raise(this.start, `After 'should' only 'await' and 'function call' can come, brakets are not supported`); + return this.raise(this.start, `After 'should' only 'await' and 'function call' can come, brackets are not supported`); const expression = this.parseExpression(); diff --git a/packages/keyword-should/index.spec.js b/packages/keyword-should/index.spec.js index 7a90ac1..34f5e88 100644 --- a/packages/keyword-should/index.spec.js +++ b/packages/keyword-should/index.spec.js @@ -13,7 +13,7 @@ test('goldstein: keyword: should (with await)', (t) => { t.end(); }); -test('goldstein: keyword: should (brakets)', (t) => { - t.raise('not-supported', `After 'should' only 'await' and 'function call' can come, brakets are not supported (1:7)`); +test('goldstein: keyword: should (brackets)', (t) => { + t.raise('not-supported', `After 'should' only 'await' and 'function call' can come, brackets are not supported (1:7)`); t.end(); });