Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated error messages for invalid parser syntaxType option
- Loading branch information
1 parent
2ddfcd0
commit 7686bf4
Showing
6 changed files
with
18 additions
and
5 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
2 changes: 1 addition & 1 deletion
2
...l-parser/test/fixtures/experimental/record-and-tuple/invalid-type-bar-record/options.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": [["recordAndTuple", { "syntaxType": "invalid" }]], | ||
"throws": "Unexpected token (1:1)" | ||
"throws": "'recordAndTuple' requires 'syntaxType' option whose value should be one of: 'hash', 'bar'" | ||
} |
2 changes: 1 addition & 1 deletion
2
...el-parser/test/fixtures/experimental/record-and-tuple/invalid-type-bar-tuple/options.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": [["recordAndTuple", { "syntaxType": "invalid" }]], | ||
"throws": "Unexpected token (1:1)" | ||
"throws": "'recordAndTuple' requires 'syntaxType' option whose value should be one of: 'hash', 'bar'" | ||
} |
2 changes: 1 addition & 1 deletion
2
...-parser/test/fixtures/experimental/record-and-tuple/invalid-type-hash-record/options.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": [["recordAndTuple", { "syntaxType": "invalid" }]], | ||
"throws": "Unexpected character '#' (1:0)" | ||
"throws": "'recordAndTuple' requires 'syntaxType' option whose value should be one of: 'hash', 'bar'" | ||
} |
2 changes: 1 addition & 1 deletion
2
...l-parser/test/fixtures/experimental/record-and-tuple/invalid-type-hash-tuple/options.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": [["recordAndTuple", { "syntaxType": "invalid" }]], | ||
"throws": "Unexpected character '#' (1:0)" | ||
"throws": "'recordAndTuple' requires 'syntaxType' option whose value should be one of: 'hash', 'bar'" | ||
} |