1*cc2b5a7fSGabriel Donadel Dall'Agnol import ExpoModulesTestCore 260b442dbSŁukasz Kosmaty 3*cc2b5a7fSGabriel Donadel Dall'Agnol @testable import ExpoModulesCore 460b442dbSŁukasz Kosmaty @testable import EXDevMenu 560b442dbSŁukasz Kosmaty 6*cc2b5a7fSGabriel Donadel Dall'Agnol class DevMenuInternalModuleTest: ExpoSpec { specnull760b442dbSŁukasz Kosmaty override func spec() { 8*cc2b5a7fSGabriel Donadel Dall'Agnol let appContext = AppContext.create() 9*cc2b5a7fSGabriel Donadel Dall'Agnol let module = DevMenuInternalModule(appContext: appContext) 10*cc2b5a7fSGabriel Donadel Dall'Agnol 1160b442dbSŁukasz Kosmaty it("constants should contain information about key command support") { 1260b442dbSŁukasz Kosmaty #if targetEnvironment(simulator) 1360b442dbSŁukasz Kosmaty let doesDeviceSupportKeyCommands = true 1460b442dbSŁukasz Kosmaty #else 1560b442dbSŁukasz Kosmaty let doesDeviceSupportKeyCommands = false 1660b442dbSŁukasz Kosmaty #endif 17*cc2b5a7fSGabriel Donadel Dall'Agnol let constants = module.definition().getConstants() 1860b442dbSŁukasz Kosmaty 1960b442dbSŁukasz Kosmaty expect(constants["doesDeviceSupportKeyCommands"] as? Bool).to(equal(doesDeviceSupportKeyCommands)) 2060b442dbSŁukasz Kosmaty } 2160b442dbSŁukasz Kosmaty } 2260b442dbSŁukasz Kosmaty } 23