Commit 5c56b23
committed
refactor to spy on debounced funcitionality
We can now spy on the underlying getToken method to verify
it is being debounced as expected.
Also reduce the debounce interval to 50ms to reduce the delay but still
catch a barrage of calls
Signed-off-by: nkomonen-amazon <[email protected]>1 parent 2efa3ec commit 5c56b23
File tree
2 files changed
+8
-5
lines changed- packages/core/src
- auth/sso
- test/credentials/sso
2 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 159 | + | |
162 | 160 | | |
163 | 161 | | |
| 162 | + | |
164 | 163 | | |
165 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
0 commit comments