Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Apr 9, 2023
1 parent d1116e2 commit 2f4a1a0
Show file tree
Hide file tree
Showing 16 changed files with 60 additions and 61 deletions.
3 changes: 2 additions & 1 deletion test/Esprima.Tests.Test262/Test262Harness.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"Namespace": "Esprima.Tests.Test262",
"Parallel": true,
"ExcludedFeatures": [
"regexp-unicode-property-escapes"
"regexp-unicode-property-escapes",
"import-assertions"
],
"ExcludedFlags": [],
"ExcludedDirectories": [],
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { x } from "foo" with;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "x" with;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { foo } from "foo.json" with { type: "json" };
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,24 @@
}
}
},
"assertions": [
"attributes": [
{
"type": "ImportAttribute",
"key": {
"type": "Identifier",
"name": "type",
"range": [
40,
44
38,
42
],
"loc": {
"start": {
"line": 1,
"column": 40
"column": 38
},
"end": {
"line": 1,
"column": 44
"column": 42
}
}
},
Expand All @@ -104,39 +104,39 @@
"value": "json",
"raw": "\"json\"",
"range": [
40,
52
38,
50
],
"loc": {
"start": {
"line": 1,
"column": 40
"column": 38
},
"end": {
"line": 1,
"column": 52
"column": 50
}
}
},
"range": [
40,
52
38,
50
],
"loc": {
"start": {
"line": 1,
"column": 40
"column": 38
},
"end": {
"line": 1,
"column": 52
"column": 50
}
}
}
],
"range": [
0,
55
53
],
"loc": {
"start": {
Expand All @@ -145,15 +145,15 @@
},
"end": {
"line": 1,
"column": 55
"column": 53
}
}
}
],
"sourceType": "module",
"range": [
0,
55
53
],
"loc": {
"start": {
Expand All @@ -162,7 +162,7 @@
},
"end": {
"line": 1,
"column": 55
"column": 53
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import foo from "foo.json" with { type: "json" };
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,24 @@
}
}
},
"assertions": [
"attributes": [
{
"type": "ImportAttribute",
"key": {
"type": "Identifier",
"name": "type",
"range": [
36,
40
34,
38
],
"loc": {
"start": {
"line": 1,
"column": 36
"column": 34
},
"end": {
"line": 1,
"column": 40
"column": 38
}
}
},
Expand All @@ -85,39 +85,39 @@
"value": "json",
"raw": "\"json\"",
"range": [
36,
48
34,
46
],
"loc": {
"start": {
"line": 1,
"column": 36
"column": 34
},
"end": {
"line": 1,
"column": 48
"column": 46
}
}
},
"range": [
36,
48
34,
46
],
"loc": {
"start": {
"line": 1,
"column": 36
"column": 34
},
"end": {
"line": 1,
"column": 48
"column": 46
}
}
}
],
"range": [
0,
51
49
],
"loc": {
"start": {
Expand All @@ -126,16 +126,15 @@
},
"end": {
"line": 1,
"column": 51
"column": 49
}
}
}
],
"sourceType": "script",
"strict": false,
"sourceType": "module",
"range": [
0,
51
49
],
"loc": {
"start": {
Expand All @@ -144,7 +143,7 @@
},
"end": {
"line": 1,
"column": 51
"column": 49
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import foo from "foo.json" with { lazy: "true" };
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,24 @@
}
}
},
"assertions": [
"attributes": [
{
"type": "ImportAttribute",
"key": {
"type": "Identifier",
"name": "lazy",
"range": [
36,
40
34,
38
],
"loc": {
"start": {
"line": 1,
"column": 36
"column": 34
},
"end": {
"line": 1,
"column": 40
"column": 38
}
}
},
Expand All @@ -85,39 +85,39 @@
"value": "true",
"raw": "\"true\"",
"range": [
36,
48
34,
46
],
"loc": {
"start": {
"line": 1,
"column": 36
"column": 34
},
"end": {
"line": 1,
"column": 48
"column": 46
}
}
},
"range": [
36,
48
34,
46
],
"loc": {
"start": {
"line": 1,
"column": 36
"column": 34
},
"end": {
"line": 1,
"column": 48
"column": 46
}
}
}
],
"range": [
0,
51
49
],
"loc": {
"start": {
Expand All @@ -126,16 +126,15 @@
},
"end": {
"line": 1,
"column": 51
"column": 49
}
}
}
],
"sourceType": "script",
"strict": false,
"sourceType": "module",
"range": [
0,
51
49
],
"loc": {
"start": {
Expand All @@ -144,7 +143,7 @@
},
"end": {
"line": 1,
"column": 51
"column": 49
}
}
}

0 comments on commit 2f4a1a0

Please sign in to comment.