Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/compiler/compile/nodes/Animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class Animation extends Node {
// TODO can we relax the 'immediate child' rule?
component.error(this, {
code: 'invalid-animation',
message: 'An element that use the animate directive must be the immediate child of a keyed each block'
message: 'An element that uses the animate directive must be the immediate child of a keyed each block'
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/compiler/compile/nodes/EachBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default class EachBlock extends AbstractBlock {
const child = this.children.find(child => !!(child as Element).animation);
component.error((child as Element).animation, {
code: 'invalid-animation',
message: 'An element that use the animate directive must be the sole child of a keyed each block'
message: 'An element that uses the animate directive must be the sole child of a keyed each block'
});
}
}
Expand Down
4 changes: 2 additions & 2 deletions test/validator/samples/animation-not-in-each/errors.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[{
"code": "invalid-animation",
"message": "An element that use the animate directive must be the immediate child of a keyed each block",
"message": "An element that uses the animate directive must be the immediate child of a keyed each block",
"start": {
"line": 5,
"column": 5,
Expand All @@ -12,4 +12,4 @@
"character": 55
},
"pos": 44
}]
}]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[{
"code": "invalid-animation",
"message": "An element that use the animate directive must be the immediate child of a keyed each block",
"message": "An element that uses the animate directive must be the immediate child of a keyed each block",
"start": {
"line": 6,
"column": 6,
Expand All @@ -12,4 +12,4 @@
"character": 80
},
"pos": 69
}]
}]
4 changes: 2 additions & 2 deletions test/validator/samples/animation-siblings/errors.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[{
"code": "invalid-animation",
"message": "An element that use the animate directive must be the sole child of a keyed each block",
"message": "An element that uses the animate directive must be the sole child of a keyed each block",
"start": {
"line": 6,
"column": 6,
Expand All @@ -12,4 +12,4 @@
"character": 88
},
"pos": 77
}]
}]