diff --git a/.circleci/config.yml b/.circleci/config.yml index 56108e852..3085b7378 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -148,7 +148,7 @@ jobs: paths: - ~/android-tools - - run: gem install bundler + - run: gem install bundler -v 2.4.22 - restore_cache: keys: diff --git a/ios/plugins/StageRevertDataPlugin/Tests/StageRevertDataPluginTests.swift b/ios/plugins/StageRevertDataPlugin/Tests/StageRevertDataPluginTests.swift index ee264e907..58049f7a9 100644 --- a/ios/plugins/StageRevertDataPlugin/Tests/StageRevertDataPluginTests.swift +++ b/ios/plugins/StageRevertDataPlugin/Tests/StageRevertDataPluginTests.swift @@ -67,12 +67,13 @@ class StageRevertDataPluginTests: XCTestCase { player.hooks?.viewController.tap { viewController in viewController.hooks.view.tap { view in - guard view.id == "view-3" else { - (player.state as? InProgressState)?.controllers?.data.set(transaction: ["name": "Test"]) - (player.state as? InProgressState)?.controllers?.flow.transition(with: "clear") - return - } view.hooks.onUpdate.tap { value in + guard view.id == "view-3" else { + (player.state as? InProgressState)?.controllers?.data.set(transaction: ["name": "Test"]) + (player.state as? InProgressState)?.controllers?.flow.transition(with: "clear") + return + } + let labelValue = value.objectForKeyedSubscript("value").toString() XCTAssertEqual(labelValue, "default") @@ -91,12 +92,13 @@ class StageRevertDataPluginTests: XCTestCase { player.hooks?.viewController.tap { viewController in viewController.hooks.view.tap { view in - guard view.id == "view-2" else { - (player.state as? InProgressState)?.controllers?.data.set(transaction: ["name": "Test"]) - (player.state as? InProgressState)?.controllers?.flow.transition(with: "commit") - return - } view.hooks.onUpdate.tap { value in + guard view.id == "view-2" else { + (player.state as? InProgressState)?.controllers?.data.set(transaction: ["name": "Test"]) + (player.state as? InProgressState)?.controllers?.flow.transition(with: "commit") + return + } + let labelValue = value.objectForKeyedSubscript("value").toString() XCTAssertEqual(labelValue, "Test")