purescript-httpurple/test/Test/HTTPure/UtilsSpec.purs
2021-06-25 10:25:17 -07:00

14 lines
442 B
Haskell

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
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"