Tusker/TuskerUITests/API Mocks/JSONResponse.swift

19 lines
421 B
Swift
Raw Permalink Normal View History

2019-12-31 16:40:56 +00:00
//
// JSONResponse.swift
// TuskerUITests
//
// Created by Shadowfacts on 12/31/19.
// Copyright © 2019 Shadowfacts. All rights reserved.
//
import Foundation
import Ambassador
extension JSONResponse {
init(statusCode: Int = 200, statusMessage: String = "OK", result: Any) {
self.init(statusCode: statusCode, statusMessage: statusMessage, handler: { (_) in
return result
})
}
}