Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
test PostUsersBookmarksRequestV2
Browse files Browse the repository at this point in the history
  • Loading branch information
mironal committed Mar 27, 2022
1 parent 2f94562 commit 7144a20
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import TwitterAPIKit
import XCTest

class PostUsersBookmarksRequestV2Tests: XCTestCase {
override func setUpWithError() throws {
}

override func tearDownWithError() throws {
}

func test() throws {
let req = PostUsersBookmarksRequestV2(
id: "_i_",
tweetID: "_t_"
)

XCTAssertEqual(req.method, .post)
XCTAssertEqual(req.baseURLType, .api)
XCTAssertEqual(req.path, "/2/users/_i_/bookmarks")
XCTAssertEqual(req.bodyContentType, .json)
AssertEqualAnyDict(
req.parameters,
[
"tweet_id": "_t_"
]
)
}
}

0 comments on commit 7144a20

Please sign in to comment.