Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
dukhovnyi authored Jun 23, 2022
2 parents 9fa7626 + af71a0a commit b0afc45
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions GliaWidgets.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2939,6 +2939,7 @@
9A3E1D9D27BA7741005634EB /* FoundationBased.Failing.swift in Sources */,
9A3E1D8427B67F1B005634EB /* Helper.swift in Sources */,
9A8130C627D90B3800220BBD /* FileSystemStorage.Failing.swift in Sources */,
845E2F6A28365AD000C04D56 /* CoreSDKClient.Operator.Mock.swift in Sources */,
7512A57A27BF9FCD00319DF1 /* ChatViewModelTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
19 changes: 19 additions & 0 deletions GliaWidgetsTests/Mocks/CoreSDKClient.Operator.Mock.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Foundation
import SalemoveSDK
@testable import GliaWidgets

extension CoreSdkClient.Operator {
static func mock(
id: String = "mockId",
name: String = "Mock Operator",
picture: SalemoveSDK.OperatorPicture? = nil,
availableMedia: [CoreSdkClient.MediaType]? = [.text, .audio, .video]
) -> CoreSdkClient.Operator {
CoreSdkClient.Operator(
id: id,
name: name,
picture: picture,
availableMedia: availableMedia
)
}
}

0 comments on commit b0afc45

Please sign in to comment.