-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d54c04d
commit 2057460
Showing
15 changed files
with
29 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...bineSampleApp/WorkflowCombineSampleApp/Assets.xcassets/AccentColor.colorset/Contents.json
This file was deleted.
Oops, something went wrong.
98 changes: 0 additions & 98 deletions
98
...ombineSampleApp/WorkflowCombineSampleApp/Assets.xcassets/AppIcon.appiconset/Contents.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
Samples/WorkflowCombineSampleApp/WorkflowCombineSampleApp/Assets.xcassets/Contents.json
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
Samples/WorkflowCombineSampleApp/WorkflowCombineSampleApp/Base.lproj/LaunchScreen.storyboard
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
Samples/WorkflowCombineSampleApp/WorkflowCombineSampleApp/Base.lproj/Main.storyboard
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 0 additions & 66 deletions
66
Samples/WorkflowCombineSampleApp/WorkflowCombineSampleApp/Info.plist
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
Samples/WorkflowCombineSampleApp/WorkflowCombineSampleApp/ViewController.swift
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
Samples/WorkflowCombineSampleApp/WorkflowCombineSampleAppUnitTests/DemoWorkflowTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// DemoWorkflowTests.swift | ||
// WorkflowCombineSampleAppUnitTests | ||
// | ||
// Created by Soo Rin Park on 11/1/21. | ||
// | ||
|
||
import Combine | ||
import Workflow | ||
import WorkflowTesting | ||
import XCTest | ||
@testable import Development_WorkflowCombineSampleApp | ||
|
||
class DemoWorkflowTests: XCTestCase { | ||
func test_workflowIsRenderedEverySecondForFiveSeconds() { | ||
let expectedDate = Date(timeIntervalSince1970: 0) | ||
|
||
DemoWorkflow | ||
.Action | ||
.tester(withState: .init(date: Date())) // the initial date itself does not matter | ||
.send(action: .init(publishedDate: expectedDate)) | ||
.assert(state: .init(date: expectedDate)) | ||
} | ||
} |
Oops, something went wrong.