From d79c57705a8c414b1dbb879d7330e6cf206dd350 Mon Sep 17 00:00:00 2001 From: Logan Wright Date: Fri, 4 Nov 2016 14:43:14 -0400 Subject: [PATCH] cleanup comments --- testing/basic.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/basic.md b/testing/basic.md index f08f58ea..1c3a5a3b 100644 --- a/testing/basic.md +++ b/testing/basic.md @@ -29,14 +29,14 @@ func load(_ drop: Droplet) throws { } ``` -> [WARNING] Do **not** call `run()` anywhere within the `load` function as this is a blocking call and will create problems later +> [WARNING] Do **not** call `run()` anywhere within the `load` function as `run()` is a blocking call. ## Updated `main.swift` Now that we've abstracted our loading logic, we'll need to update our `main.swift` to reflect those changes. Here's how it should look after: ```swift -let drop = Droplet(... +let drop = Droplet(...) try load(drop) drop.run() ``` @@ -45,13 +45,13 @@ drop.run() ## Testable Droplet -The first thing I like to do is in my testing target, add a file called `Droplet+Test.swift`. It will look like this: +The first thing we'll do is in my testing target, add a file called `Droplet+Test.swift`. It will look like this: ```swift import Vapor func makeTestDroplet() throws -> Droplet { - let drop = Droplet(arguments: ["dummy/path/", "prepare"], ... + let drop = Droplet(arguments: ["dummy/path/", "prepare"], ...) try load(drop) try drop.runCommands() return drop