Skip to content

Commit f2c9efd

Browse files
committed
Update test class
1 parent ad441bd commit f2c9efd

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

splitio_ios/example/ios/SplitTests/SplitTests.swift

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ class SplitFactoryStub: SplitFactory {
334334
}
335335

336336
class SplitClientStub: SplitClient {
337-
338337
var destroyCalled: Bool = false
339338
var methodCalls = [
340339
"getTreatment": false,
@@ -407,8 +406,20 @@ class SplitClientStub: SplitClient {
407406
return [:]
408407
}
409408

409+
func on(event: SplitEvent, runInBackground: Bool, execute action: @escaping SplitAction) {
410+
if event == .sdkReady {
411+
sdkReadyEventAction = action
412+
}
413+
}
414+
415+
func on(event: SplitEvent, queue: DispatchQueue, execute action: @escaping SplitAction) {
416+
if event == .sdkReady {
417+
sdkReadyEventAction = action
418+
}
419+
}
420+
410421
func on(event: SplitEvent, execute action: @escaping SplitAction) {
411-
if event == SplitEvent.sdkReady {
422+
if event == .sdkReady {
412423
sdkReadyEventAction = action
413424
}
414425
}

0 commit comments

Comments
 (0)