Skip to content

Commit 9b843b9

Browse files
committed
fix tests for Genie 5
1 parent 083091e commit 9b843b9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SwagUI"
22
uuid = "bf05d729-34b2-4f1f-a2f1-2452bece7ebc"
3-
repo = "https://github.com/GenieFramework/SwagUI.jl.git"
43
authors = ["Jiacheng Zhang <[email protected]>"]
4+
repo = "https://github.com/GenieFramework/SwagUI.jl.git"
55
version = "0.10.0"
66

77
[deps]
@@ -10,9 +10,9 @@ JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
1010
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1111

1212
[compat]
13-
julia = "1.5, 1.6"
14-
JSON = "0.21.1"
1513
HTTP = "0.8, 0.9, 1"
14+
JSON = "0.21.1"
15+
julia = "1.5, 1.6"
1616

1717
[extras]
1818
Genie = "c43c736e-a2d1-11e8-161f-af95117fbd1e"

test/app.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function serve_assets(path::String; excludes::Array{String, 1}=Array{String, 1}(
1313
for (root, _, files) in walkdir(path)
1414
for file in files
1515
if !(file in excludes)
16-
route(file) do
16+
route(file) do
1717
open(read, joinpath(root, file)) |> String
1818
end
1919
end
@@ -22,7 +22,7 @@ function serve_assets(path::String; excludes::Array{String, 1}=Array{String, 1}(
2222
end
2323

2424
serve_assets(ASSETS_PATH)
25-
Genie.AppServer.startup(PORT, HOST; open_browser = false, verbose = true, async = true)
25+
up(PORT, HOST; open_browser = false, verbose = true, async = true)
2626

2727
# basic settings
2828
swagger_document = JSON.parsefile(joinpath(ASSETS_PATH, "swagger.json"))
@@ -88,7 +88,7 @@ end
8888

8989
r = HTTP.request("GET", "$BASE_URL/$route_name")
9090
html_string = replace(String(r.body), "\n" => "")
91-
91+
9292
@test r.status == 200
9393
@test occursin(css_string, html_string)
9494
@test occursin("<link rel='stylesheet' type='text/css' href=$(stylesheet_path) />", html_string)

0 commit comments

Comments
 (0)