Skip to content

Commit ff32c2d

Browse files
author
Alexis Oyama
committed
test(action): Update test to support only trigger one action
1 parent 7fed0be commit ff32c2d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Example/Tests/Classes/MessagesTest.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ - (void)runInAppMessagePrioritizationTest:(NSDictionary *)messageConfigs
134134
withFilter:self.mockFilter
135135
fromMessageId:self.mockFromMessageId
136136
withContextualValues:self.mockContextualValues];
137+
138+
NSLog(@"IDS: %@", calledMessageIds);
137139

138140
XCTAssertTrue([calledMessageIds isEqualToSet:expectedMessageIds]);
139141
}
@@ -160,7 +162,7 @@ - (void) test_no_priorities
160162

161163
NSDictionary *messageConfigs = [LPJSON JSONFromString:jsonString];
162164
[self runInAppMessagePrioritizationTest:messageConfigs
163-
withExpectedMessageIds:[NSSet setWithObjects:@"1", @"2", @"3", nil]];
165+
withExpectedMessageIds:[NSSet setWithObjects:@"1", nil]];
164166
}
165167

166168
- (void) test_different_priorities
@@ -189,14 +191,14 @@ - (void) test_tied_priorities
189191

190192
NSDictionary *messageConfigs = [LPJSON JSONFromString:jsonString];
191193
[self runInAppMessagePrioritizationTest:messageConfigs
192-
withExpectedMessageIds:[NSSet setWithObjects:@"1", @"3", nil]];
194+
withExpectedMessageIds:[NSSet setWithObjects:@"1", nil]];
193195

194196
// Testing three messages with the same priority.
195197
jsonString = [LeanplumHelper retrieve_string_from_file:@"TiedPriorities2"
196198
ofType:@"json"];
197199
messageConfigs = [LPJSON JSONFromString:jsonString];
198200
[self runInAppMessagePrioritizationTest:messageConfigs
199-
withExpectedMessageIds:[NSSet setWithObjects:@"1", @"2" ,@"3", nil]];
201+
withExpectedMessageIds:[NSSet setWithObjects:@"1", nil]];
200202
}
201203

202204
- (void) test_different_priorities_with_missing_values

0 commit comments

Comments
 (0)