Skip to content

Commit

Permalink
Merge pull request #6 from Anastasia-Labs/feature/add-test-spec
Browse files Browse the repository at this point in the history
test: add first test specs
  • Loading branch information
solidsnakedev authored Nov 21, 2023
2 parents 2ae138a + 717cc41 commit 773011e
Show file tree
Hide file tree
Showing 49 changed files with 535 additions and 9,283 deletions.
2 changes: 1 addition & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ main = do
GuardianValidator.validator

writePlutusScript
"CBTC Minting Policy"
"Wrap Minting Policy"
"./compiled/wrapMintingPolicy.plutus"
WrapMintPolicy.policy
34 changes: 9 additions & 25 deletions bridge-template.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -117,25 +117,15 @@ common dependencies

common test-dependencies
build-depends:
, aeson-pretty
, base
, bytestring
, hedgehog
, hedgehog-quickcheck
, liqwid-plutarch-extra
, plutarch
, plutarch-context-builder
, plutarch-extra
, plutarch-quickcheck
, plutarch-unit
, plutus-core
, plutus-ledger-api
, plutus-tx
, tasty
, tasty-hedgehog
, tasty-hunit
, text
, uuid

library
import: lang, dependencies
Expand All @@ -152,22 +142,16 @@ library
executable bridge-template
import: lang, dependencies
main-is: Main.hs

-- Modules included in this executable, other than Main.
-- other-modules:

-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
build-depends: bridge-template
hs-source-dirs: app

-- test-suite bridge-template-test
-- import: lang, test-dependencies
-- type: exitcode-stdio-1.0
-- main-is: Spec.hs
-- hs-source-dirs: test
-- other-modules:
-- Spec.GuardianValidatorSpec
-- Spec.MintCBTCSpec
test-suite bridge-template-test
import: lang, dependencies, test-dependencies
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
other-modules:
Spec.GuardianValidatorSpec
Spec.MintWrapSpec

-- build-depends: bridge-template
build-depends: bridge-template
8 changes: 8 additions & 0 deletions format.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fourmolu \
-o -XQuasiQuotes \
-o -XTemplateHaskell \
-o -XTypeApplications \
-o -XImportQualifiedPost \
-o -XPatternSynonyms \
-o -XOverloadedRecordDot \
-m inplace $(git ls-files '*.hs')
3 changes: 0 additions & 3 deletions front-end/.eslintrc.json

This file was deleted.

36 changes: 0 additions & 36 deletions front-end/.gitignore

This file was deleted.

31 changes: 0 additions & 31 deletions front-end/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions front-end/components/Alert.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions front-end/components/Button.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions front-end/components/Emulator.tsx

This file was deleted.

48 changes: 0 additions & 48 deletions front-end/components/MainDApp.tsx

This file was deleted.

57 changes: 0 additions & 57 deletions front-end/components/Simulator.tsx

This file was deleted.

51 changes: 0 additions & 51 deletions front-end/components/User.tsx

This file was deleted.

Loading

0 comments on commit 773011e

Please sign in to comment.