Skip to content

Commit b75c346

Browse files
janechuCopilot
andcommitted
Remove bare e follow-up coverage
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent fc7b7fb commit b75c346

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

packages/fast-element/src/declarative/utilities.spec.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -941,9 +941,6 @@ test.describe("utilities", async () => {
941941
test("should parse $e as an event argument", async () => {
942942
expect(parseEventArgs(eventArgAccessor)).toEqual([{ type: "event" }]);
943943
});
944-
test("should treat bare e as a binding path", async () => {
945-
expect(parseEventArgs("e")).toEqual([{ type: "binding", rawArg: "e" }]);
946-
});
947944
test("should parse $c as a context argument", async () => {
948945
expect(parseEventArgs("$c")).toEqual([{ type: "context" }]);
949946
});
@@ -972,12 +969,6 @@ test.describe("utilities", async () => {
972969
{ type: "context" },
973970
]);
974971
});
975-
test("should treat bare e as a binding path in a mixed list", async () => {
976-
expect(parseEventArgs("e, $c")).toEqual([
977-
{ type: "binding", rawArg: "e" },
978-
{ type: "context" },
979-
]);
980-
});
981972
test("should return a binding type for unrecognised tokens in a mixed list", async () => {
982973
expect(parseEventArgs("$e, foo")).toEqual([
983974
{ type: "event" },

packages/fast-element/src/declarative/utilities.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export interface ParsedEventArg {
115115
* - `$e` — resolves to the DOM event object
116116
* - `$c` — resolves to the full execution context object
117117
*
118-
* Any other token, including bare `e`, is treated as a binding path and
119-
* resolved against the current data source.
118+
* Any other token is treated as a binding path and resolved against the current
119+
* data source.
120120
*
121121
* @param argsString - The raw arguments string from between the parentheses,
122122
* e.g. `""`, `"$e"`, `"$c"`, or `"$e, $c"`.

0 commit comments

Comments
 (0)