Skip to content

Commit

Permalink
[Release3.0] Update Tests to support upcoming change in nevware21/tsu…
Browse files Browse the repository at this point in the history
…tils dumpObj to better support JSON stringify and handle PURE mcomments (#2254)
  • Loading branch information
nev21 committed Jan 28, 2024
1 parent e698fd4 commit 2655ca9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down
3 changes: 2 additions & 1 deletion rollup.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ function doCleanup() {
comments: [
'some',
/^.\s*@DynamicProtoStub/i,
/^\*\*\s*@class\s*$/
/^\*\*\s*@class\s*$/,
/[#@]__/
]
})
}
Expand Down

0 comments on commit 2655ca9

Please sign in to comment.