Skip to content

Commit

Permalink
Add a Blink-based test to check Mux server
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed Aug 19, 2024
1 parent b4fc8e9 commit 385a572
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/mux-tests.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
using Test
using WebIO
using Mux
using Blink

@testset "Mux sanity" begin
@test isdefined(WebIO, :webio_serve)
end

w = Window()
@testset "Mux + Blink" begin
t = WebIO.webio_serve(page("/", req -> dom"div"("hello")), 8006)
loadurl(w, "http://localhost:8006")
@test !istaskfailed(t.task)
end

# TODO: real mux tests (possibly using Blink as a headless chrome)

0 comments on commit 385a572

Please sign in to comment.