Skip to content

Commit

Permalink
Fix typo in fn helper error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Mar 28, 2022
1 parent 07db065 commit 3cb2d8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/@glimmer/integration-tests/test/helpers/fn-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class FnTest extends RenderTest {
arg1: 'foo',
arg2: 'bar',
});
}, /You must pass a function as the `fn` helpers first argument./);
}, /You must pass a function as the `fn` helper's first argument./);
}

@test
Expand All @@ -141,7 +141,7 @@ class FnTest extends RenderTest {
arg1: 'foo',
arg2: 'bar',
});
}, /You must pass a function as the `fn` helpers first argument, you passed undefined. While rendering:\n\nthis.myFunc/);
}, /You must pass a function as the `fn` helper's first argument, you passed undefined. While rendering:\n\nthis.myFunc/);
}

@test
Expand All @@ -152,7 +152,7 @@ class FnTest extends RenderTest {
arg1: 'foo',
arg2: 'bar',
});
}, /You must pass a function as the `fn` helpers first argument, you passed null. While rendering:\n\nthis.myFunc/);
}, /You must pass a function as the `fn` helper's first argument, you passed null. While rendering:\n\nthis.myFunc/);
}

@test
Expand Down
2 changes: 1 addition & 1 deletion packages/@glimmer/runtime/lib/helpers/fn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function assertCallbackIsFn(callbackRef: Reference) {
)
) {
throw new Error(
`You must pass a function as the \`fn\` helpers first argument, you passed ${
`You must pass a function as the \`fn\` helper's first argument, you passed ${
callbackRef ? valueForRef(callbackRef) : callbackRef
}. While rendering:\n\n${callbackRef?.debugLabel}`
);
Expand Down

0 comments on commit 3cb2d8f

Please sign in to comment.