Browse Source

IOS-2628 Test for 0-length attachments

IOS-2651
Dirk Zimmermann 1 year ago
parent
commit
391e9b2bc5
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      pEpObjCTests/PEPInternalSessionTest.m

+ 5
- 0
pEpObjCTests/PEPInternalSessionTest.m View File

@ -682,6 +682,11 @@
// There shouldn't be any attachments
XCTAssertEqual(decmsg.attachments.count, 0);
// And if there is, 0-length looks wrong
for (PEPAttachment *att in decmsg.attachments) {
XCTAssertGreaterThan(att.data.length, 0);
}
}
- (void)testOutgoingContactColor


Loading…
Cancel
Save