Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielhamel committed Nov 11, 2024
1 parent 4ab3c5f commit 68c2a8e
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions src/new/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ fn mod_files() {
<version>1.0.2</version>
<name>Better matchmaking</name>
<description>Best mod ever</description>
</root>"
</root>
"
);

let script_entrypoint_content =
Expand All @@ -44,13 +45,20 @@ def fini():
"
);

let ui_entrypoint_content =
read_to_string(mod_path.join("ui/better_matchmaking.as")).unwrap();
let ui_entrypoint_content = read_to_string(
mod_path.join("ui/src/fr/gabouchet/BetterMatchmaking.as"),
)
.unwrap();
assert_eq!(
ui_entrypoint_content,
"package{
class BetterMatchmaking {}
}"
"package fr.gabouchet {
import net.wg.infrastructure.base.AbstractView;
class BetterMatchmaking extends AbstractView {
}
}
"
);

let ui_config_content =
Expand All @@ -67,8 +75,9 @@ def fini():
],
\"source-map\": true
},
\"mainClass\": \"BetterMatchmaking\"\
}"
\"mainClass\": \"BetterMatchmaking\"
}
"
);

tmp_dir.close().unwrap();
Expand Down

0 comments on commit 68c2a8e

Please sign in to comment.