mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 02:07:10 +01:00
Scripts: format the dialog-need warning test
This commit is contained in:
1 parent
33d0bc064c
commit
8ab94ba4e8
1 file changed
+2
-1
@@ -546,7 +546,8 @@ fn the_warning_lists_what_a_scripts_included_files_reach() {
|
||||
#[test]
|
||||
fn the_warning_lists_a_need_without_the_outside_heading() {
|
||||
let mut app = app();
|
||||
menus::run_ui_command(&mut app, "ui.runScript", &json!({"source": "var w = new Window('dialog', 'Title');", "name": "dialog.js"})).unwrap().unwrap();
|
||||
let source = "var w = new Window('dialog', 'Title');";
|
||||
menus::run_ui_command(&mut app, "ui.runScript", &json!({"source": source, "name": "dialog.js"})).unwrap().unwrap();
|
||||
assert_eq!(fields(&app, KIND)["reaches"]["outside"], json!([]));
|
||||
let texts = dialog_texts(&mut app);
|
||||
assert!(texts.iter().any(|t| t == script_check::need_label("dialogs").unwrap()), "{texts:?}");
|
||||
|
||||
Reference in new issue
Block a user