Skip to content

Commit

Permalink
Initial elm test scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengoldbaum committed Apr 27, 2022
1 parent 450c5de commit 712affe
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ docs/contributing.md

# We use YARN
website/package-lock.json

# Elm
elm-stuff/
2 changes: 1 addition & 1 deletion morphir/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"elm/browser": "1.0.2",
"elm/core": "1.0.5",
"elm/html": "1.0.0",
"elm-explorations/test": "1.2.2",
"finos/morphir-elm": "16.0.0"
},
"indirect": {
Expand All @@ -32,7 +33,6 @@
"elm-community/list-extra": "8.5.2",
"elm-community/maybe-extra": "5.3.0",
"elm-explorations/markdown": "1.0.0",
"elm-explorations/test": "1.2.2",
"justinmimbs/date": "3.2.1",
"mdgriffith/elm-ui": "1.1.8",
"miniBill/elm-unicode": "1.0.2",
Expand Down
30 changes: 30 additions & 0 deletions morphir/tests/Morphir/TechSprint/Minimal/RuleTests.elm
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module Morphir.TechSprint.Minimal.RuleTests exposing (..)

import Test exposing (..)
import Expect
import Morphir.TechSprint.Minimal.Rule exposing (..)
import Morphir.TechSprint.Minimal.BasicTypes as BasicTypes exposing (Date)
import Morphir.TechSprint.Minimal.Type exposing (WorkflowStep)
import Morphir.TechSprint.Minimal.Type exposing (Trade)
import Morphir.TechSprint.Minimal.Type exposing (TradeState)
import Morphir.TechSprint.Minimal.Type exposing (ReportableEvent)

cFTCPart45TransactionReportTest : Test
cFTCPart45TransactionReportTest =
let
tradeDate = BasicTypes.Date 1 1 2022

originatingWorkflowStep = WorkflowStep []
reportableTrade = (TradeState (Trade tradeDate))

event : ReportableEvent
event = ReportableEvent originatingWorkflowStep reportableTrade


-- expectedResult : CFTCPart45TransactionReport
-- expectedResult =

in
describe "cFTCPart45TransactionReport test"
[ test "foo" <| \_ -> Expect.false "false" False
]

0 comments on commit 712affe

Please sign in to comment.