Skip to content

Commit

Permalink
[assert helpers] enforce equality for log assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii committed Jan 6, 2025
1 parent 35acd9b commit 7381f1d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/internal-test-utils/consoleMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,7 @@ export function createLogAssertion(
}

// Main logic to check if log is expected, with the component stack.
if (
normalizedMessage === expectedMessage ||
normalizedMessage.includes(expectedMessage)
) {
if (normalizedMessage === expectedMessage) {
if (isLikelyAComponentStack(normalizedMessage)) {
if (expectedWithoutStack === true) {
unexpectedIncludingComponentStack.push(normalizedMessage);
Expand Down

0 comments on commit 7381f1d

Please sign in to comment.