Skip to content

Commit

Permalink
fix: should: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Aug 9, 2023
1 parent 7beed6d commit 456c500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/keyword-should/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions packages/keyword-should/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit 456c500

Please sign in to comment.