From 694c0b3f7d8fbd2fd1443463cab924d5f03e9f19 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 2 Aug 2018 21:36:13 -0400 Subject: [PATCH] Added test case to check build for TypeScript host-path mayhem. --- tests/test-build.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test-build.js b/tests/test-build.js index f3e7656d..c256fe8b 100644 --- a/tests/test-build.js +++ b/tests/test-build.js @@ -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'); + }); }); /*