Skip to content

Commit 320ffe7

Browse files
committed
Fix tests & pwa issue
1 parent 3c1a427 commit 320ffe7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

server/app_assets/sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/app_assets/sw.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/src/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn build_request_authenticated(path: &str, appstate: &AppState) -> TestRequest {
3434
#[actix_rt::test]
3535
async fn server_tests() {
3636
let unique_string = atomic_lib::utils::random_string(10);
37-
let opts = Opts::parse_from(&[
37+
let opts = Opts::parse_from([
3838
"atomic-server",
3939
"--initialize",
4040
"--data-dir",
@@ -54,7 +54,7 @@ async fn server_tests() {
5454
let app = test::init_service(
5555
App::new()
5656
.app_data(data)
57-
.configure(|app| crate::routes::config_routes(app, &appstate.config)),
57+
.configure(crate::routes::config_routes),
5858
)
5959
.await;
6060
let store = &appstate.store;

0 commit comments

Comments
 (0)