Skip to content

Commit d9f4b2a

Browse files
fixed up tests
1 parent 8f6d100 commit d9f4b2a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/daemon.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use crate::DEFAULT_SOCKET;
77
use crate::HYPRSCRATCH_DIR;
88
use hyprland::data::{Client, Clients};
99
use hyprland::dispatch::*;
10-
use hyprland::prelude::*;
1110
use hyprland::error::HyprError;
11+
use hyprland::prelude::*;
1212
use hyprland::Result;
1313
use std::fs::{create_dir, remove_file};
1414
use std::io::prelude::*;
@@ -476,9 +476,9 @@ mod tests {
476476
"test_nonfloating".to_string(),
477477
],
478478
commands: [
479-
"[size 30% 30%; move 60% 0] kitty --title test_sticky".to_string(),
480-
"[workspace special:test_special; size 30% 30%; move 30% 0] kitty --title test_special".to_string(),
481-
"[size 30% 30%; move 0 0] kitty --title test_normal".to_string(),
479+
"[float; size 30% 30%; move 60% 0] kitty --title test_sticky".to_string(),
480+
"[float; size 30% 30%; move 0 0] kitty --title test_normal".to_string(),
481+
"[float; workspace special:test_special; size 30% 30%; move 30% 0] kitty --title test_special".to_string(),
482482
"kitty --title test_nonfloating".to_string(),
483483
],
484484
expected_workspace: [
@@ -519,9 +519,9 @@ mod tests {
519519
],
520520
commands: [
521521
"kitty --title test_nonfloating".to_string(),
522-
"[size 30% 30%; move 60% 0] kitty --title test_sticky".to_string(),
523-
"[size 30% 30%; move 30% 0] kitty --title test_shiny".to_string(),
524-
"[size 30% 30%; move 0 0] kitty --title test_normal".to_string(),
522+
"[float; size 30% 30%; move 60% 0] kitty --title test_sticky".to_string(),
523+
"[float; size 30% 30%; move 30% 0] kitty --title test_shiny".to_string(),
524+
"[float; size 30% 30%; move 0 0] kitty --title test_normal".to_string(),
525525
],
526526
expected_workspace: [
527527
active_workspace.name.clone(),
@@ -565,10 +565,10 @@ mod tests {
565565
"test_ephemeral".to_string(),
566566
],
567567
commands: [
568-
"[size 30% 30%; move 60% 0] kitty --title test_sticky".to_string(),
569-
"[size 30% 30%; move 30% 0] kitty --title test_pin".to_string(),
570-
"[size 30% 30%; move 0 0] kitty --title test_normal".to_string(),
571-
"[size 30% 30%; move 0 30%] kitty --title test_ephemeral".to_string(),
568+
"[float; size 30% 30%; move 60% 0] kitty --title test_sticky".to_string(),
569+
"[float; pin; size 30% 30%; move 30% 0] kitty --title test_pin".to_string(),
570+
"[float; size 30% 30%; move 0 0] kitty --title test_normal".to_string(),
571+
"[float; size 30% 30%; move 0 30%] kitty --title test_ephemeral".to_string(),
572572
],
573573
expected_workspace: [
574574
active_workspace.name.clone(),

src/scratchpad.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ mod tests {
556556
let resources = [TestResources::new("tiled"), TestResources::new("floating")];
557557
let mut scratchpad = [
558558
resources[0].into_scratchpad("tiled"),
559-
resources[0].into_scratchpad(""),
559+
resources[1].into_scratchpad(""),
560560
];
561561

562562
resources.iter().for_each(|r| r.assert_not_present());

0 commit comments

Comments
 (0)