Skip to content

Commit

Permalink
Revert "chore: remove fake error from expect calls (microsoft#28112)"
Browse files Browse the repository at this point in the history
This reverts commit 2c3955a.
  • Loading branch information
mxschmitt committed Jan 31, 2024
1 parent 0f8d619 commit 6fc592d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ export class FrameDispatcher extends Dispatcher<Frame, channels.FrameChannel, Br
const result = await this._frame.expect(metadata, params.selector, { ...params, expectedValue });
if (result.received !== undefined)
result.received = serializeResult(result.received);
if (result.matches === params.isNot)
metadata.error = { error: { name: 'Expect', message: 'Expect failed' } };
return result;
}
}

0 comments on commit 6fc592d

Please sign in to comment.