restructure test directory
This commit is contained in:
1
test/fixtures/syntax/source-maps/arrow-function/actual.js
vendored
Normal file
1
test/fixtures/syntax/source-maps/arrow-function/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var t = x => x * x;
|
||||
3
test/fixtures/syntax/source-maps/arrow-function/expected.js
vendored
Normal file
3
test/fixtures/syntax/source-maps/arrow-function/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
var t = function(x) {
|
||||
return x * x;
|
||||
};
|
||||
10
test/fixtures/syntax/source-maps/arrow-function/source-mappings.json
vendored
Normal file
10
test/fixtures/syntax/source-maps/arrow-function/source-mappings.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
[{
|
||||
"original": {
|
||||
"line": 1,
|
||||
"column": 15
|
||||
},
|
||||
"generated": {
|
||||
"line": 2,
|
||||
"column": 11
|
||||
}
|
||||
}]
|
||||
8
test/fixtures/syntax/source-maps/class/actual.js
vendored
Normal file
8
test/fixtures/syntax/source-maps/class/actual.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
get bar() {
|
||||
throw new Error("wow");
|
||||
}
|
||||
}
|
||||
|
||||
var test = new Test;
|
||||
test.bar;
|
||||
16
test/fixtures/syntax/source-maps/class/expected.js
vendored
Normal file
16
test/fixtures/syntax/source-maps/class/expected.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
var Test = function() {
|
||||
function Test() {}
|
||||
|
||||
Object.defineProperties(Test.prototype, {
|
||||
bar: {
|
||||
get: function() {
|
||||
throw new Error("wow");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return Test;
|
||||
}();
|
||||
|
||||
var test = new Test;
|
||||
test.bar;
|
||||
10
test/fixtures/syntax/source-maps/class/source-mappings.json
vendored
Normal file
10
test/fixtures/syntax/source-maps/class/source-mappings.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
[{
|
||||
"original": {
|
||||
"line": 3,
|
||||
"column": 11
|
||||
},
|
||||
"generated": {
|
||||
"line": 7,
|
||||
"column": 15
|
||||
}
|
||||
}]
|
||||
Reference in New Issue
Block a user