Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastyBlacksmith committed May 3, 2024
1 parent 29534f0 commit 1041519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handler/state.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function _dependencies_json(app::DashApp)
output = output_string(callback.dependencies),
clientside_function = _dep_clientside_func(callback.func),
prevent_initial_call = callback.prevent_initial_call,
long = callback.long && (interval = callback.interval)
long = callback.long !== false && (interval = callback.long[:interval],)
)
end
return JSON3.write(result)
Expand Down
2 changes: 1 addition & 1 deletion test/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -674,5 +674,5 @@ end
request = HTTP.Request("GET", "/_dash-dependencies")
resp = Dash.HttpHelpers.handle(handler, request)
deps = JSON3.read(String(resp.body))
@test deps[1].long
@test deps[1].long.interval == 1000
end

0 comments on commit 1041519

Please sign in to comment.