-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronizing shared expression tests with frontend (#1040)
* Updating shared tests to match frontend * Removing shared tests for layout-preprocessor (which does not exist on backend, and no longer exists in this form on frontend) * Removing tests for duplicate IDs in component lookups. This is no longer supported on frontend, as duplicate component IDs are now a hard error. * Adding shared tests for the argv function, and making positional arguments nullable --------- Co-authored-by: Ole Martin Handeland <[email protected]>
- Loading branch information
1 parent
48ef962
commit 2965048
Showing
39 changed files
with
191 additions
and
614 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
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
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
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
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
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
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
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
6 changes: 6 additions & 0 deletions
6
...Core.Tests/LayoutExpressions/CommonTests/shared-tests/functions/argv/arg-can-be-null.json
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,6 @@ | ||
{ | ||
"name": "Positional argument can also be null", | ||
"expression": ["argv", 1], | ||
"expects": null, | ||
"positionalArguments": ["foo", null, 5] | ||
} |
5 changes: 5 additions & 0 deletions
5
...p.Core.Tests/LayoutExpressions/CommonTests/shared-tests/functions/argv/error-no-args.json
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,5 @@ | ||
{ | ||
"name": "Errors when trying to read argument when none exist", | ||
"expression": ["argv", 0], | ||
"expectsFailure": "No positional arguments available" | ||
} |
6 changes: 6 additions & 0 deletions
6
...re.Tests/LayoutExpressions/CommonTests/shared-tests/functions/argv/error-no-such-arg.json
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,6 @@ | ||
{ | ||
"name": "Errors when trying to read argument that does not exist", | ||
"expression": ["argv", 2], | ||
"expectsFailure": "Index 2 out of range", | ||
"positionalArguments": ["foo", 1234] | ||
} |
6 changes: 6 additions & 0 deletions
6
...nn.App.Core.Tests/LayoutExpressions/CommonTests/shared-tests/functions/argv/simple-0.json
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,6 @@ | ||
{ | ||
"name": "Simple: Read arg 0", | ||
"expression": ["argv", 0], | ||
"expects": "foo", | ||
"positionalArguments": ["foo", "bar"] | ||
} |
6 changes: 6 additions & 0 deletions
6
...nn.App.Core.Tests/LayoutExpressions/CommonTests/shared-tests/functions/argv/simple-1.json
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,6 @@ | ||
{ | ||
"name": "Simple: Read arg 1", | ||
"expression": ["argv", 1], | ||
"expects": 1234, | ||
"positionalArguments": ["foo", 1234] | ||
} |
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
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
Oops, something went wrong.