change some things to expectPlugin
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token, expected ( (2:15)"
|
||||
"throws": "Dynamic imports require a parameter: import('a.js').then (1:0)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token, expected ( (2:10)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'functionSent' (2:11)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token, expected ( (2:11)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'functionSent' (2:12)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token, expected ( (2:17)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'functionSent' (2:18)"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"throws": "Unexpected token (1:15)",
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'asyncGenerators' (1:15)",
|
||||
"plugins": []
|
||||
}
|
||||
}
|
||||
|
||||
2
test/fixtures/experimental/no-decorators/error-without-plugin/actual.js
vendored
Normal file
2
test/fixtures/experimental/no-decorators/error-without-plugin/actual.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
@memoize
|
||||
function() {}
|
||||
4
test/fixtures/experimental/no-decorators/error-without-plugin/options.json
vendored
Normal file
4
test/fixtures/experimental/no-decorators/error-without-plugin/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"throws": "This experimental syntax requires enabling the parser plugin(s): 'decorators, decorators2' (1:0)",
|
||||
"plugins": []
|
||||
}
|
||||
1
test/fixtures/experimental/no-do-expressions/error-without-plugin/actual.js
vendored
Normal file
1
test/fixtures/experimental/no-do-expressions/error-without-plugin/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(do {x})
|
||||
4
test/fixtures/experimental/no-do-expressions/error-without-plugin/options.json
vendored
Normal file
4
test/fixtures/experimental/no-do-expressions/error-without-plugin/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'doExpressions' (1:1)",
|
||||
"plugins": []
|
||||
}
|
||||
1
test/fixtures/experimental/no-dynamic-import/error-without-plugin/actual.js
vendored
Normal file
1
test/fixtures/experimental/no-dynamic-import/error-without-plugin/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var $ = import("jquery");
|
||||
4
test/fixtures/experimental/no-dynamic-import/error-without-plugin/options.json
vendored
Normal file
4
test/fixtures/experimental/no-dynamic-import/error-without-plugin/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'dynamicImport' (1:8)",
|
||||
"plugins": []
|
||||
}
|
||||
1
test/fixtures/experimental/no-import-meta/error-without-plugin/actual.js
vendored
Normal file
1
test/fixtures/experimental/no-import-meta/error-without-plugin/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
const x = import.meta;
|
||||
5
test/fixtures/experimental/no-import-meta/error-without-plugin/options.json
vendored
Normal file
5
test/fixtures/experimental/no-import-meta/error-without-plugin/options.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'importMeta' (1:17)",
|
||||
"sourceType": "module",
|
||||
"plugins": []
|
||||
}
|
||||
1
test/fixtures/experimental/no-object-rest-spread/error-without-plugin/actual.js
vendored
Normal file
1
test/fixtures/experimental/no-object-rest-spread/error-without-plugin/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
({...x})
|
||||
4
test/fixtures/experimental/no-object-rest-spread/error-without-plugin/options.json
vendored
Normal file
4
test/fixtures/experimental/no-object-rest-spread/error-without-plugin/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'objectRestSpread' (1:2)",
|
||||
"plugins": []
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token, expected ( (4:6)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'optionalCatchBinding' (4:6)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Unexpected token, expected ( (4:6)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'optionalCatchBinding' (4:6)"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "You can only use optional-chaining when the 'optionalChaining' plugin is enabled. (1:0)"
|
||||
"throws": "This experimental syntax requires enabling the parser plugin: 'optionalChaining' (1:1)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user