Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali committed Feb 12, 2018
1 parent c51efc8 commit 198b356
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Tests/BugsnagSinkTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,12 @@ - (void)testEventDevice {
NSDictionary *event = [self.processedData[@"events"] firstObject];
NSDictionary *device = event[@"device"];
XCTAssertNotNil(device);
XCTAssertEqual(16, device.count); // includes some legacy metadata

#if TARGET_OS_IPHONE || TARGET_OS_TV || TARGET_IPHONE_SIMULATOR
XCTAssertEqual(17, device.count);
#else
XCTAssertEqual(16, device.count);
#endif

XCTAssertEqualObjects(device[@"id"], @"f6d519a74213a57f8d052c53febfeee6f856d062");
XCTAssertEqualObjects(device[@"manufacturer"], @"Apple");
XCTAssertEqualObjects(device[@"model"], @"x86_64");
Expand Down

0 comments on commit 198b356

Please sign in to comment.