Skip to content

Instantly share code, notes, and snippets.

func test_movie_search_success() throws {
//Load Json from file
let data = try Data.fromJSON(fileName: "search_movie_result")
XCTAssertNotNil(data)
//Refer to `Mocker` Library Documentation - assign MockingURLProtocol
let configuration = URLSessionConfiguration.af.default
configuration.protocolClasses = [MockingURLProtocol.self] + (configuration.protocolClasses ?? [])
//Refer to `Mocker` Library Documentation - override configuration
@thethtun
thethtun / 0_reuse_code.js
Last active January 16, 2017 07:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console