Remove the word "mock" from the tests so that I feel better about myself

It isn't mocking if you don't call it mocking
This commit is contained in:
XeroOl 2023-07-12 19:07:28 -05:00
parent 1c2a1d3f6a
commit 5f701d8a6b
9 changed files with 8 additions and 8 deletions

View File

@ -4,7 +4,7 @@
(local is (require :test.is)) (local is (require :test.is))
(local {: ROOT-URI (local {: ROOT-URI
: ROOT-PATH : ROOT-PATH
: create-client} (require :test.mock-client)) : create-client} (require :test.client))
(fn default [tbl field value] (fn default [tbl field value]
(when (= nil (. tbl field)) (when (= nil (. tbl field))

View File

@ -3,7 +3,7 @@
(local {: view} (require :fennel)) (local {: view} (require :fennel))
(local {: ROOT-URI (local {: ROOT-URI
: create-client} (require :test.mock-client)) : create-client} (require :test.client))
(local filename (.. ROOT-URI "/imaginary-file.fnl")) (local filename (.. ROOT-URI "/imaginary-file.fnl"))

View File

@ -3,7 +3,7 @@
(local {: view} (require :fennel)) (local {: view} (require :fennel))
(local {: ROOT-URI (local {: ROOT-URI
: create-client} (require :test.mock-client)) : create-client} (require :test.client))
(macro find [t body ?should-be-nil] (macro find [t body ?should-be-nil]
(assert-compile (= nil ?should-be-nil) "you can only have one thing here, put a `(do)`") (assert-compile (= nil ?should-be-nil) "you can only have one thing here, put a `(do)`")

View File

@ -4,7 +4,7 @@
(local is (require :test.is)) (local is (require :test.is))
(local {: ROOT-URI (local {: ROOT-URI
: create-client} (require :test.mock-client)) : create-client} (require :test.client))
(describe "jump to definition" (describe "jump to definition"

View File

@ -3,7 +3,7 @@
(local {: view} (require :fennel)) (local {: view} (require :fennel))
(local {: ROOT-URI (local {: ROOT-URI
: create-client} (require :test.mock-client)) : create-client} (require :test.client))
(describe "hover" (describe "hover"

View File

@ -4,7 +4,7 @@
(local {: view &as fennel} (require :fennel)) (local {: view &as fennel} (require :fennel))
(local {: create-client (local {: create-client
: ROOT-URI} : ROOT-URI}
(require :test.mock-client)) (require :test.client))
(local language (require :fennel-ls.language)) (local language (require :fennel-ls.language))
(local utils (require :fennel-ls.utils)) (local utils (require :fennel-ls.utils))

View File

@ -3,7 +3,7 @@
(local {: view} (require :fennel)) (local {: view} (require :fennel))
(local {: ROOT-URI (local {: ROOT-URI
: create-client} (require :test.mock-client)) : create-client} (require :test.client))
(local filename (.. ROOT-URI "/imaginary-file.fnl")) (local filename (.. ROOT-URI "/imaginary-file.fnl"))

View File

@ -3,7 +3,7 @@
(local {: view} (require :fennel)) (local {: view} (require :fennel))
(local {: ROOT-URI (local {: ROOT-URI
: create-client} (require :test.mock-client)) : create-client} (require :test.client))
(describe "settings" (describe "settings"
(it "can set the path" (it "can set the path"