Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5427b61

Browse files
committed
unit test
1 parente0b9eb3 commit5427b61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎site/src/contexts/ProxyContext.test.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import type * as ProxyLatency from "./useProxyLatency";
2626
// here and not inside a unit test.
2727
jest.mock("contexts/useProxyLatency",()=>({
2828
useProxyLatency:()=>{
29-
return{proxyLatencies:hardCodedLatencies,refetch:jest.fn()};
29+
return{proxyLatencies:hardCodedLatencies,refetch:jest.fn(),loaded:true};
3030
},
3131
}));
3232

@@ -261,11 +261,11 @@ describe("ProxyContextSelection", () => {
261261
expUserProxyID:MockHealthyWildWorkspaceProxy.id,
262262
},
263263
],
264-
//Latency behavior is disabled, so theprimary should be selected.
264+
//First page load defers to theproxy by latency
265265
[
266266
"regions_default_low_latency",
267267
{
268-
expProxyID:MockPrimaryWorkspaceProxy.id,
268+
expProxyID:MockHealthyWildWorkspaceProxy.id,
269269
regions:MockWorkspaceProxies,
270270
storageProxy:undefined,
271271
latencies:{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp