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

Commit64ffe17

Browse files
committed
fix tests
1 parent065502b commit64ffe17

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

‎Coder-Desktop/Coder-DesktopTests/Util.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class MockVPNService: VPNService, ObservableObject {
1010
@Publishedvarstate:Coder_Desktop.VPNServiceState=.disabled
1111
@PublishedvarbaseAccessURL:URL=.init(string:"https://dev.coder.com")!
1212
@PublishedvarmenuState:VPNMenuState=.init()
13-
@PublishedvarprogressMessage:String?
13+
@Publishedvarprogress:VPNProgress=.init(stage:.none, downloadProgress:nil)
1414
varonStart:(()async->Void)?
1515
varonStop:(()async->Void)?
1616

‎Coder-Desktop/Coder-DesktopTests/VPNStateTests.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ struct VPNStateTests {
3838

3939
tryawaitViewHosting.host(view){
4040
tryawait sut.inspection.inspect{ viewin
41-
letprogressView=try view.find(ViewType.ProgressView.self)
42-
#expect(try progressView.labelView().text().string()=="Starting Coder Connect...")
41+
_=try view.find(text:"Starting Coder Connect...")
4342
}
4443
}
4544
}
@@ -50,8 +49,7 @@ struct VPNStateTests {
5049

5150
tryawaitViewHosting.host(view){
5251
tryawait sut.inspection.inspect{ viewin
53-
letprogressView=try view.find(ViewType.ProgressView.self)
54-
#expect(try progressView.labelView().text().string()=="Stopping Coder Connect...")
52+
_=try view.find(text:"Stopping Coder Connect...")
5553
}
5654
}
5755
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp