18 lines
359 B
FSharp
18 lines
359 B
FSharp
module Tests
|
|
|
|
open Fable.Mocha
|
|
|
|
let add x y = x + y
|
|
|
|
let appTests =
|
|
testList
|
|
"App tests"
|
|
[ testCase "add works"
|
|
<| fun _ ->
|
|
let result = add 2 3
|
|
Expect.equal result 5 "Result must be 5" ]
|
|
|
|
let allTests = testList "All" [ appTests ]
|
|
|
|
[<EntryPoint>]
|
|
let main (args: string []) = Mocha.runTests allTests
|