purescript-httpurple/test/Test/HTTPure/UtilsSpec.purs
Thomas Honeyman 42bf4475e0
Update for PureScript 0.15 (#194)
* 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>
2022-05-04 14:02:29 -07:00

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