File tree 2 files changed +4
-4
lines changed
Tests/OptimizelyTests-DataModel
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class HoldoutTests: XCTestCase {
42
42
" audienceIds " : [ " 33333 " ] ,
43
43
" audienceConditions " : HoldoutTests . conditionHolderData]
44
44
45
- static var sampleDataWithIncludedFlags : [ String : Any ] = [ " id " : " 11111 " ,
45
+ static var sampleDataWithIncludedFlags : [ String : Any ] = [ " id " : " 55555 " ,
46
46
" key " : " background " ,
47
47
" status " : " Running " ,
48
48
" layerId " : " 22222 " ,
@@ -52,7 +52,7 @@ class HoldoutTests: XCTestCase {
52
52
" audienceConditions " : HoldoutTests . conditionHolderData,
53
53
" includedFlags " : [ " 4444 " , " 5555 " ] ]
54
54
55
- static var sampleDataWithIncludedAndExcludedFlags : [ String : Any ] = [ " id " : " 11111 " ,
55
+ static var sampleDataWithIncludedAndExcludedFlags : [ String : Any ] = [ " id " : " 3333 " ,
56
56
" key " : " background " ,
57
57
" status " : " Running " ,
58
58
" layerId " : " 22222 " ,
@@ -90,7 +90,7 @@ extension HoldoutTests {
90
90
91
91
let model : Holdout = try ! OTUtils . model ( from: data)
92
92
93
- XCTAssert ( model. id == " 11111 " )
93
+ XCTAssert ( model. id == " 55555 " )
94
94
XCTAssert ( model. key == " background " )
95
95
XCTAssert ( model. status == . running)
96
96
XCTAssert ( model. layerId == " 22222 " )
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ extension ProjectTests {
218
218
219
219
let model : Project = try ! OTUtils . model ( from: data)
220
220
XCTAssertNotNil ( model)
221
- XCTAssertNil ( model. holdouts)
221
+ XCTAssertEqual ( model. holdouts, [ ] )
222
222
223
223
}
224
224
You can’t perform that action at this time.
0 commit comments