Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Mar 31, 2020
1 parent 0147318 commit 8e841b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
@@ -1,9 +1,9 @@
const assert = require('assert');

module.exports = {
description: 'combines existing inline sourcemap comments into one',
solo: true,
description: 'removes sourcemap comments',
async test(code) {
assert.doesNotMatch(code, /sourceMappingURL=main\.js\.map/);
assert.doesNotMatch(code, /sourceMappingURL=other\.js\.map/);
},
assert.strictEqual(code.indexOf('sourceMappingURL'), -1);
}
};
@@ -1,8 +1,9 @@
const assert = require('assert');

module.exports = {
description: 'combines existing sourcemap files into one',
solo: true,
description: 'removes existing inline sourcemaps',
async test(code) {
assert.doesNotMatch(code, /sourceMappingURL=data:/);
},
assert.strictEqual(code.indexOf('sourceMappingURL'), -1);
}
};

0 comments on commit 8e841b2

Please sign in to comment.