diff --git a/extensions/applicationinsights-analytics-js/Tests/Unit/src/AnalyticsPlugin.tests.ts b/extensions/applicationinsights-analytics-js/Tests/Unit/src/AnalyticsPlugin.tests.ts index d6a96963f..e2042abdb 100644 --- a/extensions/applicationinsights-analytics-js/Tests/Unit/src/AnalyticsPlugin.tests.ts +++ b/extensions/applicationinsights-analytics-js/Tests/Unit/src/AnalyticsPlugin.tests.ts @@ -663,8 +663,10 @@ export class AnalyticsPluginTests extends AITestClass { // Test const dumpExMsg = throwSpy.args[0][3].exception; Assert.ok(dumpExMsg.indexOf("stack: ") != -1); - Assert.ok(dumpExMsg.indexOf(`message: '${unexpectedError.message}'`) !== -1); - Assert.ok(dumpExMsg.indexOf("name: 'Error'") !== -1); + Assert.ok(dumpExMsg.indexOf(`message: \"${unexpectedError.message}\"`) !== -1 || + dumpExMsg.indexOf(`message: '${unexpectedError.message}'`) !== -1); + Assert.ok(dumpExMsg.indexOf("name: \"Error\"") !== -1 || + dumpExMsg.indexOf("name: 'Error'") !== -1); } }); diff --git a/rollup.base.config.js b/rollup.base.config.js index acb599814..0d509ffca 100644 --- a/rollup.base.config.js +++ b/rollup.base.config.js @@ -19,7 +19,8 @@ function doCleanup() { comments: [ 'some', /^.\s*@DynamicProtoStub/i, - /^\*\*\s*@class\s*$/ + /^\*\*\s*@class\s*$/, + /[#@]__/ ] }) }