Commit f71785c
committed
fix(azure-identity,msal-node): fix double-registration in mock README example
The Testing section called enableAuthMock(configurator) once for its
return value, then again with a configure callback to seed the account.
The second call replaces the first provider (enableAuthMock always
registers last), so the retained `auth` reference from the first call
was no longer the active provider by the time login/acquireAccessToken
ran against it.
Collapse to a single enableAuthMock call that both seeds the account
and returns the provider that stays registered.
Addresses review feedback on PR #5244 (copilot-pull-request-reviewer).1 parent 6f31c73 commit f71785c
2 files changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 126 | + | |
| 127 | + | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 109 | + | |
| 110 | + | |
114 | 111 | | |
115 | 112 | | |
116 | 113 | | |
| |||
0 commit comments