@@ -83,7 +83,7 @@ final class EvaluationInteractorTests: XCTestCase {
8383 " currentEvaluationsId should be empty string "
8484 )
8585 XCTAssertEqual (
86- storage. userAttributesUpdated ,
86+ storage. userAttributesState . isUpdated ,
8787 false ,
8888 " userAttributesUpdated should be false "
8989 )
@@ -119,7 +119,7 @@ final class EvaluationInteractorTests: XCTestCase {
119119 " currentEvaluationsId should not be a empty string after fetch evaluation success "
120120 )
121121 XCTAssertEqual (
122- storage. userAttributesUpdated ,
122+ storage. userAttributesState . isUpdated ,
123123 false ,
124124 " userAttributesUpdated should be false "
125125 )
@@ -455,11 +455,10 @@ final class EvaluationInteractorTests: XCTestCase {
455455 storage. currentEvaluationsId = baseUserEvaluationsId
456456 storage. featureTag = config. featureTag
457457 storage. evaluatedAt = evaluationCreatedAt
458- storage. userAttributesUpdated = false
459458 XCTAssertEqual ( storage. currentEvaluationsId, baseUserEvaluationsId)
460459 XCTAssertEqual ( storage. featureTag, config. featureTag)
461460 XCTAssertEqual ( storage. evaluatedAt, evaluationCreatedAt)
462- XCTAssertEqual ( storage. userAttributesUpdated , false )
461+ XCTAssertEqual ( storage. userAttributesState . isUpdated , false )
463462 let api = MockApiClient (
464463 getEvaluationsHandler: { user, userEvaluationsId, _, condition, completion in
465464 XCTAssertEqual ( user, . mock1)
@@ -485,13 +484,13 @@ final class EvaluationInteractorTests: XCTestCase {
485484 XCTAssertEqual ( storage. currentEvaluationsId, baseUserEvaluationsId)
486485 XCTAssertEqual ( storage. featureTag, config. featureTag)
487486 XCTAssertEqual ( storage. evaluatedAt, evaluationCreatedAt)
488- XCTAssertEqual ( storage. userAttributesUpdated , false )
487+ XCTAssertEqual ( storage. userAttributesState . isUpdated , false )
489488
490489 interactor. setUserAttributesUpdated ( )
491490 XCTAssertEqual ( storage. currentEvaluationsId, baseUserEvaluationsId)
492491 XCTAssertEqual ( storage. featureTag, config. featureTag)
493492 XCTAssertEqual ( storage. evaluatedAt, evaluationCreatedAt)
494- XCTAssertEqual ( storage. userAttributesUpdated , true )
493+ XCTAssertEqual ( storage. userAttributesState . isUpdated , true )
495494
496495 interactor. fetch ( user: . mock1) { result in
497496 switch result {
@@ -508,7 +507,7 @@ final class EvaluationInteractorTests: XCTestCase {
508507 XCTAssertEqual ( storage. featureTag, config. featureTag)
509508 XCTAssertEqual ( storage. evaluatedAt, UserEvaluations . mock1. createdAt)
510509 // because `userAttributesUpdated` == true before fetch new evaluations, now it should be `false`
511- XCTAssertEqual ( storage. userAttributesUpdated , false , " userAttributesUpdated should be `false` " )
510+ XCTAssertEqual ( storage. userAttributesState . isUpdated , false , " userAttributesUpdated should be `false` " )
512511
513512 wait ( for: [ expectation] , timeout: 1 )
514513 }
@@ -605,7 +604,7 @@ final class EvaluationInteractorTests: XCTestCase {
605604 XCTAssertEqual ( storage. featureTag, config. featureTag)
606605 XCTAssertEqual ( storage. evaluatedAt, UserEvaluations . mock1ForceUpdate. createdAt)
607606 // because `userAttributesUpdated` == true before fetch new evaluations, now it should be `false`
608- XCTAssertEqual ( storage. userAttributesUpdated , false , " userAttributesUpdated should be `false` " )
607+ XCTAssertEqual ( storage. userAttributesState . isUpdated , false , " userAttributesUpdated should be `false` " )
609608
610609 wait ( for: [ expectation] , timeout: 0.1 )
611610 }
@@ -676,7 +675,7 @@ final class EvaluationInteractorTests: XCTestCase {
676675 XCTAssertEqual ( storage. featureTag, config. featureTag)
677676 XCTAssertEqual ( storage. evaluatedAt, UserEvaluations . mock1UpsertAndArchivedFeature. createdAt)
678677 // because `userAttributesUpdated` == true before fetch new evaluations, now it should be `false`
679- XCTAssertEqual ( storage. userAttributesUpdated , false , " userAttributesUpdated should be `false` " )
678+ XCTAssertEqual ( storage. userAttributesState . isUpdated , false , " userAttributesUpdated should be `false` " )
680679
681680 wait ( for: [ expectation] , timeout: 0.1 )
682681 }
0 commit comments