2020-11-14 21:09:07 +00:00
|
|
|
module Test.HTTPure.UtilsSpec where
|
|
|
|
|
|
|
|
import Test.Spec as Spec
|
|
|
|
import HTTPure.Utils as Utils
|
|
|
|
import Test.HTTPure.TestHelpers as TestHelpers
|
|
|
|
import Test.HTTPure.TestHelpers ((?=))
|
|
|
|
|
|
|
|
utilsSpec :: TestHelpers.Test
|
2021-03-22 19:02:36 +00:00
|
|
|
utilsSpec =
|
|
|
|
Spec.describe "replacePlus" do
|
|
|
|
Spec.it "should replace all pluses" do
|
|
|
|
Utils.replacePlus "HTTPPure+is+A+purescript+HTTP+server+framework"
|
|
|
|
?= "HTTPPure%20is%20A%20purescript%20HTTP%20server%20framework"
|