Skip to content

Commit

Permalink
test: Fix Sign request integration test (box/box-codegen#647) (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build authored Jan 17, 2025
1 parent cb28e6d commit 9df1df2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "b2c3124", "specHash": "0a89b2b", "version": "0.5.0" }
{ "engineHash": "5ab9c2b", "specHash": "cf0a265", "version": "0.5.0" }
6 changes: 3 additions & 3 deletions Tests/SignRequests/SignRequestsManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class SignRequestsManagerTests: XCTestCase {
XCTAssertTrue(createdSignRequest.externalId == "123")
XCTAssertTrue(createdSignRequest.externalSystemName == "BoxSignIntegration")
XCTAssertTrue(createdSignRequest.isDocumentPreparationNeeded == false)
XCTAssertTrue(createdSignRequest.name == "Sign Request")
XCTAssertTrue(createdSignRequest.name == "Sign Request.pdf")
XCTAssertTrue(createdSignRequest.redirectUrl == "https://www.box.com")
XCTAssertTrue(createdSignRequest.signFiles!.files![0].name == fileToSign.name)
XCTAssertTrue(createdSignRequest.signFiles!.files![0].name == createdSignRequest.name)
XCTAssertTrue(createdSignRequest.signers![1].email == signerEmail)
XCTAssertTrue(createdSignRequest.signers![1].suppressNotifications == true)
XCTAssertTrue(createdSignRequest.signers![1].declinedRedirectUrl == "https://www.box.com")
Expand All @@ -36,7 +36,7 @@ class SignRequestsManagerTests: XCTestCase {
XCTAssertTrue(createdSignRequest.parentFolder!.id == destinationFolder.id)
XCTAssertTrue(Utils.Dates.dateToString(date: createdSignRequest.prefillTags![0].dateValue!) == "2035-01-01")
let newSignRequest: SignRequest = try await client.signRequests.getSignRequestById(signRequestId: createdSignRequest.id!)
XCTAssertTrue(newSignRequest.signFiles!.files![0].name == fileToSign.name)
XCTAssertTrue(newSignRequest.signFiles!.files![0].name == createdSignRequest.name)
XCTAssertTrue(newSignRequest.signers![1].email == signerEmail)
XCTAssertTrue(newSignRequest.parentFolder!.id == destinationFolder.id)
let cancelledSignRequest: SignRequest = try await client.signRequests.cancelSignRequest(signRequestId: createdSignRequest.id!)
Expand Down

0 comments on commit 9df1df2

Please sign in to comment.