1 import ExpoModulesTestCore 2 3 @testable import ExpoModulesCore 4 5 final class CoreModuleSpec: ExpoSpec { specnull6 override func spec() { 7 let appContext = AppContext.create() 8 let runtime = try! appContext.runtime 9 10 describe("core module") { 11 it("is initialized") { 12 expect(appContext.coreModule).notTo(beNil()) 13 } 14 } 15 16 describe("core object") { 17 it("is initialized") { 18 expect(runtime.coreObject).notTo(beNil()) 19 } 20 21 it("is installed to global scope") { 22 let coreObjectValue = try runtime.eval("expo") 23 expect(coreObjectValue.kind) == .object 24 } 25 } 26 } 27 } 28