From a2e8e1bcf2fbfcc8cc1b980cca2b93df86e1a7fe Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 11 Aug 2025 13:53:48 +0300 Subject: Rename tests directory into test --- tests/SlackBuilder/PackageSpec.hs | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 tests/SlackBuilder/PackageSpec.hs (limited to 'tests/SlackBuilder/PackageSpec.hs') diff --git a/tests/SlackBuilder/PackageSpec.hs b/tests/SlackBuilder/PackageSpec.hs deleted file mode 100644 index 79fce72..0000000 --- a/tests/SlackBuilder/PackageSpec.hs +++ /dev/null @@ -1,26 +0,0 @@ -{- This Source Code Form is subject to the terms of the Mozilla Public License, - v. 2.0. If a copy of the MPL was not distributed with this file, You can - obtain one at https://mozilla.org/MPL/2.0/. -} - -module SlackBuilder.PackageSpec - ( spec - ) where - -import SlackBuilder.Package -import Test.Hspec (Spec, describe, it, shouldBe) -import Text.URI.QQ (uri) - -spec :: Spec -spec = do - describe "renderDownloadWithVersion" $ do - it "renders text as URL" $ - let given = DownloadTemplate "https://example.com" - actual = renderDownloadWithVersion given "1.2" - expected = Just [uri|https://example.com|] - in actual `shouldBe` expected - - it "renders the components in order" $ - let given = DownloadTemplate "https://example.com/{version}/segment" - actual = renderDownloadWithVersion given "1.2" - expected = Just [uri|https://example.com/1.2/segment|] - in actual `shouldBe` expected -- cgit v1.2.3