-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: omitting default attribute on get is now out.global
- Loading branch information
1 parent
89ed1f5
commit 24867d4
Showing
14 changed files
with
75 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tests__/fixtures/get-and-set/__snapshots__/error-get-args/node.compile.error.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
..._tests__/fixtures/get-and-set/__snapshots__/error-get-args/web.compile.error.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
...tures/get-and-set/__snapshots__/error-get-no-default-attr/node.compile.error.expected.txt
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...xtures/get-and-set/__snapshots__/error-get-no-default-attr/web.compile.error.expected.txt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...__tests__/fixtures/get-and-set/__snapshots__/get-global-context/node.render.expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div> | ||
hello | ||
</div> |
3 changes: 3 additions & 0 deletions
3
src/__tests__/fixtures/get-and-set/__snapshots__/get-global-context/web.render.expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div> | ||
hello | ||
</div> |
7 changes: 7 additions & 0 deletions
7
...tures/get-and-set/__snapshots__/get-mutate-global-context/node.compile.error.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
src/__tests__/fixtures/get-and-set/templates/error-assign-global-context.marko(3,3): Cannot mutate the global context. | ||
1 | <get/{ message }/> | ||
2 | <button onClick() { | ||
> 3 | message = "World"; | ||
| ^^^^^^^^^^^^^^^^^ | ||
4 | }>${message}</button> | ||
5 | |
7 changes: 7 additions & 0 deletions
7
...xtures/get-and-set/__snapshots__/get-mutate-global-context/web.compile.error.expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
src/__tests__/fixtures/get-and-set/templates/error-assign-global-context.marko(3,3): Cannot mutate the global context. | ||
1 | <get/{ message }/> | ||
2 | <button onClick() { | ||
> 3 | message = "World"; | ||
| ^^^^^^^^^^^^^^^^^ | ||
4 | }>${message}</button> | ||
5 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/__tests__/fixtures/get-and-set/templates/error-assign-global-context.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<get/{ message }/> | ||
<button onClick() { | ||
message = "World"; | ||
}>${message}</button> |
2 changes: 0 additions & 2 deletions
2
src/__tests__/fixtures/get-and-set/templates/error-get-no-default-attr.marko
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
src/__tests__/fixtures/get-and-set/templates/get-global-context.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<get/{ message }/> | ||
<div>${message}</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters