- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스) - Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포 - 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
915 B
Swift
36 lines
915 B
Swift
import ExpoModulesTestCore
|
|
|
|
@testable import ExpoModulesCore
|
|
|
|
class ConstantsSpec: ExpoSpec {
|
|
override class func spec() {
|
|
let appContext = AppContext()
|
|
|
|
it("takes closure resolving to dictionary") {
|
|
let holder = mockModuleHolder(appContext) {
|
|
Constants {
|
|
return ["test": 123]
|
|
}
|
|
}
|
|
expect(holder.getConstants()["test"] as? Int) == 123
|
|
}
|
|
|
|
it("takes the dictionary") {
|
|
let holder = mockModuleHolder(appContext) {
|
|
Constants(["test": 123])
|
|
}
|
|
expect(holder.getConstants()["test"] as? Int) == 123
|
|
}
|
|
|
|
it("merges multiple constants definitions") {
|
|
let holder = mockModuleHolder(appContext) {
|
|
Constants(["test": 456, "test2": 789])
|
|
Constants(["test": 123])
|
|
}
|
|
let consts = holder.getConstants()
|
|
expect(consts["test"] as? Int) == 123
|
|
expect(consts["test2"] as? Int) == 789
|
|
}
|
|
}
|
|
}
|