42bf4475e0
* Update shell and packages * Fix code for 0.15 * Fix tests * Format * Add check-pulp command * Generate bowerfile * Add check-pulp to CI * Add nixfmt to formatting * Fixup test helpers * Take 2 * PR comments (#1) * Nix cleanup from PR * Use arrows functions * Remove unnecessary step Co-authored-by: Connor Prussin <connor@prussin.net>
17 lines
384 B
Haskell
17 lines
384 B
Haskell
module Test.HTTPure.UtilsSpec where
|
|
|
|
import HTTPure.Utils (replacePlus)
|
|
import Test.HTTPure.TestHelpers (Test, (?=))
|
|
import Test.Spec (describe, it)
|
|
|
|
replacePlusSpec :: Test
|
|
replacePlusSpec =
|
|
describe "replacePlus" do
|
|
it "should replace all pluses" do
|
|
replacePlus "foo+bar+baz" ?= "foo%20bar%20baz"
|
|
|
|
utilsSpec :: Test
|
|
utilsSpec =
|
|
describe "Utils" do
|
|
replacePlusSpec
|