Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created June 18, 2020 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencurtis/ed18af01dc0699a21e1e2a1d33b7127b to your computer and use it in GitHub Desktop.
Save stevencurtis/ed18af01dc0699a21e1e2a1d33b7127b to your computer and use it in GitHub Desktop.
JSONPlaceHolderAPIActionTests
import XCTest
import Alamofire
@testable import AlamofireNetworking
class JSONPlaceHolderAPIActionTests: XCTestCase {
func testAPI() {
let router = JSONPlaceHolderAPIAction.getToDo(id: 8)
XCTAssertEqual(router.urlRequest?.description, "https://jsonplaceholder.typicode.com/todos/8")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment