Skip to content

nestproject/NestTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NestTest

Simple testing tool for Nest.

Usage

import NestTest

// Create a test client with our Nest application "hello"
let client = TestClient(hello)

let response = client.get("/")
assert(response.body == "Hello World")

let response = client.post("/", body: "Kyle")
assert(response.body == "Hello Kyle")

Spectre

try expect(client.get("/").body) == "Hello World"

XCTest

XCTAssertEqual(client.get("/").body, "Hello World")