Skip to content

Commit 61a687b

Browse files
committed
Add a test with a map that contains a source-less mapping.
1 parent b2e198e commit 61a687b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/fixtures/valid/Babel/router.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/unit.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,13 @@ tests['Valid Minifyified bundle with inline sourcemap should not throw'] = funct
9292
}, 'Valid Minifyified inline sourcemap and inline sourceContent should not throw');
9393
};
9494

95+
tests['Valid Babel map should not throw'] = function () {
96+
var babelDir = path.join(validDir, 'Babel')
97+
, map = fs.readFileSync(path.join(babelDir, 'router.js.map')).toString();
98+
99+
assert.doesNotThrow(function () {
100+
validate(null, map);
101+
}, 'Valid Minifyified inline sourcemap and inline sourceContent should not throw');
102+
};
103+
95104
module.exports = tests;

0 commit comments

Comments
 (0)