Skip to content

Commit

Permalink
fix: e2e metadata tests new required key in oauth message
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 authored and matejkriz committed Oct 15, 2021
1 parent 3f152d5 commit a345e00
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export const stubOpen = (win: Window) => {
// @ts-ignore
win.Math.random = () => 0.4; // to make tests deterministic, this value ensures state YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
// @ts-ignore
return () => win.postMessage({ search: '?code=chicken-cho-cha&state=YYYYYYYYYY' });
return () =>
win.postMessage({ search: '?code=chicken-cho-cha&state=YYYYYYYYYY', key: 'trezor-oauth' });
};

export const rerouteMetadataToMockProvider = (
Expand Down

0 comments on commit a345e00

Please sign in to comment.