2
0
mirror of synced 2025-02-24 20:18:07 +00:00

Added test case to check build for TypeScript host-path mayhem.

This commit is contained in:
Richard Moore 2018-08-02 21:36:13 -04:00
parent 1c45840148
commit 694c0b3f7d
No known key found for this signature in database
GPG Key ID: 525F70A6FCABC295

View File

@ -34,6 +34,11 @@ describe("Dist Build:", function() {
test('ethers.js');
test('ethers.min.js');
it("does not have host specific includes", function() {
var data = fs.readFileSync(path.resolve(__dirname, '../dist/ethers.types.txt')).toString();
assert.ok(data.toLowerCase().indexOf('/ricmoo') === -1, 'contains ricmoo in a path');
});
});
/*