Skip to content

Commit

Permalink
Tests added
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteBlackGoose committed Jul 11, 2022
1 parent b35cb37 commit bbeacb7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/Plotly.NET.ImageExport.Tests/ImageExport.fs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ let ``Image export tests`` =
testBase64PNG
"Invalid base64 string for Chart.toBase64PNGStringAsync"
}
testCase "Chart.toBase64JPGString" <| fun () ->
testCase "Chart.toBase64JPGString terminates" <| fun () ->
let actual = Chart.Point([1.,1.]) |> Chart.toBase64JPGString()
Expect.isTrue (actual.Length > 100) ""

testCase "Chart.toBase64PNGString terminates" <| fun () ->
let actual = Chart.Point([1.,1.]) |> Chart.toBase64PNGString()
Expect.isTrue (actual.Length > 100) ""
testCase "Chart.toSVGString terminates" <| fun () ->
let actual = Chart.Point([1.,1.]) |> Chart.toSVGString()
Expect.isTrue (actual.Length > 100) ""
]
)

0 comments on commit bbeacb7

Please sign in to comment.