[Pkg-javascript-devel] Bug#918004: node-inline-source-map FTBFS: test failures
Adrian Bunk
bunk at debian.org
Wed Jan 2 08:20:12 GMT 2019
Source: node-inline-source-map
Version: 0.6.2~git-1
Severity: serious
Tags: ftbfs
https://buildd.debian.org/status/fetch.php?pkg=node-inline-source-map&arch=all&ver=0.6.2~git-1&stamp=1546379862&raw=0
...
17 passing (2s)
9 failing
1) test/source-content.js generated mappings one file with source content includes source content:
Error: includes source content
+ expected - actual
"sources": [
"foo.js"
]
"sourcesContent": [
- "function foo () {
+ "function foo() {
var hello = 'hello';
var world = 'world';
console.log('%s %s', hello, world);
}"
at Test.<anonymous> (test/source-content.js:32:7)
at Test.<anonymous> (test/source-content.js:27:5)
at Object.<anonymous> (test/source-content.js:25:1)
2) test/source-content.js generated mappings one file with source content encodes generated mappings including source content:
Error: encodes generated mappings including source content
+ expected - actual
-{"version":3,"sources":["foo.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA","file":"","sourceRoot":"","sourcesContent":["function foo () {\n var hello = 'hello';\n var world = 'world';\n console.log('%s %s', hello, world);\n}"]}
+{"version":3,"sources":["foo.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA","file":"","sourceRoot":"","sourcesContent":["function foo() {\n var hello = 'hello';\n var world = 'world';\n console.log('%s %s', hello, world);\n}"]}
at Test.<anonymous> (test/source-content.js:49:7)
at Test.<anonymous> (test/source-content.js:27:5)
at Object.<anonymous> (test/source-content.js:25:1)
3) test/source-content.js generated mappings one file with source content returns correct inline mapping url including source content:
Error: returns correct inline mapping url including source content
+ expected - actual
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6IiIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBmb28gKCkge1xuICB2YXIgaGVsbG8gPSAnaGVsbG8nO1xuICB2YXIgd29ybGQgPSAnd29ybGQnO1xuICBjb25zb2xlLmxvZygnJXMgJXMnLCBoZWxsbywgd29ybGQpO1xufSJdfQ==
+//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6IiIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBmb28oKSB7XG4gIHZhciBoZWxsbyA9ICdoZWxsbyc7XG4gIHZhciB3b3JsZCA9ICd3b3JsZCc7XG4gIGNvbnNvbGUubG9nKCclcyAlcycsIGhlbGxvLCB3b3JsZCk7XG59Il19
at Test.<anonymous> (test/source-content.js:54:7)
at Test.<anonymous> (test/source-content.js:27:5)
at Object.<anonymous> (test/source-content.js:25:1)
4) test/source-content.js generated mappings two files with source content includes source content for both files:
Error: includes source content for both files
+ expected - actual
"foo.js"
"bar.js"
]
"sourcesContent": [
- "function foo () {
+ "function foo() {
var hello = 'hello';
var world = 'world';
console.log('%s %s', hello, world);
}"
- "function bar () {
+ "function bar() {
console.log('yes?');
}"
]
"version": 3
at Test.<anonymous> (test/source-content.js:69:7)
at Test.<anonymous> (test/source-content.js:62:5)
at Object.<anonymous> (test/source-content.js:25:1)
5) test/source-content.js generated mappings two files with source content encodes generated mappings including source content:
Error: encodes generated mappings including source content
+ expected - actual
-{"version":3,"sources":["foo.js","bar.js"],"names":[],"mappings":"ACAA,ADAA;ACCA,ADAA;ACCA,ADAA;AACA;AACA","file":"","sourceRoot":"","sourcesContent":["function foo () {\n var hello = 'hello';\n var world = 'world';\n console.log('%s %s', hello, world);\n}","function bar () {\n console.log('yes?');\n}"]}
+{"version":3,"sources":["foo.js","bar.js"],"names":[],"mappings":"ACAA,ADAA;ACCA,ADAA;ACCA,ADAA;AACA;AACA","file":"","sourceRoot":"","sourcesContent":["function foo() {\n var hello = 'hello';\n var world = 'world';\n console.log('%s %s', hello, world);\n}","function bar() {\n console.log('yes?');\n}"]}
at Test.<anonymous> (test/source-content.js:88:7)
at Test.<anonymous> (test/source-content.js:62:5)
at Object.<anonymous> (test/source-content.js:25:1)
6) test/source-content.js generated mappings two files with source content returns correct inline mapping url including source content:
Error: returns correct inline mapping url including source content
+ expected - actual
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvby5qcyIsImJhci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUNBQSxBREFBO0FDQ0EsQURBQTtBQ0NBLEFEQUE7QUFDQTtBQUNBIiwiZmlsZSI6IiIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBmb28gKCkge1xuICB2YXIgaGVsbG8gPSAnaGVsbG8nO1xuICB2YXIgd29ybGQgPSAnd29ybGQnO1xuICBjb25zb2xlLmxvZygnJXMgJXMnLCBoZWxsbywgd29ybGQpO1xufSIsImZ1bmN0aW9uIGJhciAoKSB7XG4gIGNvbnNvbGUubG9nKCd5ZXM/Jyk7XG59Il19
+//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvby5qcyIsImJhci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUNBQSxBREFBO0FDQ0EsQURBQTtBQ0NBLEFEQUE7QUFDQTtBQUNBIiwiZmlsZSI6IiIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBmb28oKSB7XG4gIHZhciBoZWxsbyA9ICdoZWxsbyc7XG4gIHZhciB3b3JsZCA9ICd3b3JsZCc7XG4gIGNvbnNvbGUubG9nKCclcyAlcycsIGhlbGxvLCB3b3JsZCk7XG59IiwiZnVuY3Rpb24gYmFyKCkge1xuICBjb25zb2xlLmxvZygneWVzPycpO1xufSJdfQ==
at Test.<anonymous> (test/source-content.js:93:7)
at Test.<anonymous> (test/source-content.js:62:5)
at Object.<anonymous> (test/source-content.js:25:1)
7) test/source-content.js generated mappings two files, only one with source content includes source content for the file with source content and [null] for the other file:
Error: includes source content for the file with source content and [null] for the other file
+ expected - actual
"bar.js"
]
"sourcesContent": [
[null]
- "function bar () {
+ "function bar() {
console.log('yes?');
}"
]
"version": 3
at Test.<anonymous> (test/source-content.js:107:7)
at Test.<anonymous> (test/source-content.js:101:5)
at Object.<anonymous> (test/source-content.js:25:1)
8) test/source-content.js generated mappings two files, only one with source content encodes generated mappings including source content:
Error: encodes generated mappings including source content
+ expected - actual
-{"version":3,"sources":["foo.js","bar.js"],"names":[],"mappings":"ACAA,ADAA;ACCA,ADAA;ACCA,ADAA;AACA;AACA","file":"","sourceRoot":"","sourcesContent":[null,"function bar () {\n console.log('yes?');\n}"]}
+{"version":3,"sources":["foo.js","bar.js"],"names":[],"mappings":"ACAA,ADAA;ACCA,ADAA;ACCA,ADAA;AACA;AACA","file":"","sourceRoot":"","sourcesContent":[null,"function bar() {\n console.log('yes?');\n}"]}
at Test.<anonymous> (test/source-content.js:123:7)
at Test.<anonymous> (test/source-content.js:101:5)
at Object.<anonymous> (test/source-content.js:25:1)
9) test/source-content.js generated mappings two files, only one with source content returns correct inline mapping url including source content:
Error: returns correct inline mapping url including source content
+ expected - actual
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvby5qcyIsImJhci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUNBQSxBREFBO0FDQ0EsQURBQTtBQ0NBLEFEQUE7QUFDQTtBQUNBIiwiZmlsZSI6IiIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6W251bGwsImZ1bmN0aW9uIGJhciAoKSB7XG4gIGNvbnNvbGUubG9nKCd5ZXM/Jyk7XG59Il19
+//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvby5qcyIsImJhci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUNBQSxBREFBO0FDQ0EsQURBQTtBQ0NBLEFEQUE7QUFDQTtBQUNBIiwiZmlsZSI6IiIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6W251bGwsImZ1bmN0aW9uIGJhcigpIHtcbiAgY29uc29sZS5sb2coJ3llcz8nKTtcbn0iXX0=
at Test.<anonymous> (test/source-content.js:128:7)
at Test.<anonymous> (test/source-content.js:101:5)
at Object.<anonymous> (test/source-content.js:25:1)
make[1]: *** [debian/rules:12: override_dh_auto_test] Error 1
More information about the Pkg-javascript-devel
mailing list