aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/integration
diff options
context:
space:
mode:
authordenis <denismaximov98@gmail.com>2021-01-22 08:24:56 +0200
committerdenis <denismaximov98@gmail.com>2021-01-22 08:24:56 +0200
commitbd1e3d2d7b25bf3d5f0feb77801c18e70da1c936 (patch)
treeecddbd0f4dacd009ff0868922fbc2f824258648d /src/tests/integration
parentAdd some message types for server-client comms (diff)
parentfeat(plugin): Search in root folder for plugins and layout files (diff)
downloadsl0ppij-bd1e3d2d7b25bf3d5f0feb77801c18e70da1c936.tar.gz
sl0ppij-bd1e3d2d7b25bf3d5f0feb77801c18e70da1c936.tar.xz
sl0ppij-bd1e3d2d7b25bf3d5f0feb77801c18e70da1c936.zip
Merge branch 'main' into server-client
Diffstat (limited to 'src/tests/integration')
-rw-r--r--src/tests/integration/layouts.rs40
-rw-r--r--src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_paste_multiline-2.snap2
-rw-r--r--src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_paste_multiline-3.snap2
3 files changed, 2 insertions, 42 deletions
diff --git a/src/tests/integration/layouts.rs b/src/tests/integration/layouts.rs
index 35ff7188..2086ac72 100644
--- a/src/tests/integration/layouts.rs
+++ b/src/tests/integration/layouts.rs
@@ -50,43 +50,3 @@ pub fn accepts_basic_layout() {
assert_snapshot!(next_to_last_snapshot);
assert_snapshot!(last_snapshot);
}
-
-#[test]
-#[should_panic(expected = "The total percent for each part should equal 100.")]
-pub fn should_throw_for_more_than_100_percent_total() {
- let fake_win_size = PositionAndSize {
- columns: 121,
- rows: 20,
- x: 0,
- y: 0,
- };
- let mut fake_input_output = get_fake_os_input(&fake_win_size);
- fake_input_output.add_terminal_input(&[&QUIT]);
-
- let mut opts = CliArgs::default();
- opts.layout = Some(PathBuf::from(
- "src/tests/fixtures/layouts/parts-total-more-than-100-percent.yaml",
- ));
-
- start(Box::new(fake_input_output.clone()), opts);
-}
-
-#[test]
-#[should_panic(expected = "The total percent for each part should equal 100.")]
-pub fn should_throw_for_less_than_100_percent_total() {
- let fake_win_size = PositionAndSize {
- columns: 121,
- rows: 20,
- x: 0,
- y: 0,
- };
- let mut fake_input_output = get_fake_os_input(&fake_win_size);
- fake_input_output.add_terminal_input(&[&QUIT]);
-
- let mut opts = CliArgs::default();
- opts.layout = Some(PathBuf::from(
- "src/tests/fixtures/layouts/parts-total-less-than-100-percent.yaml",
- ));
-
- start(Box::new(fake_input_output.clone()), opts);
-}
diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_paste_multiline-2.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_paste_multiline-2.snap
index d1c18eb2..60dc4f7d 100644
--- a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_paste_multiline-2.snap
+++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_paste_multiline-2.snap
@@ -21,7 +21,6 @@ df: /run/user/1000/doc: Operation not permitted
awk '{printf "\\\\t%s\\\\t%4s / %4s %s\\\\n\n", $6, $3, $2, $5}' | \
sed -e 's/^\(.*\([8][5-9]\|[9][0-9]\)%.*\)$/\\\\e[0;31m\1\\\\e[0m/' -e 's/^\(.*\([7][5-9]\|[8][0-4]\)%.*\
)$/\\\\e[0;33m\1\\\\e[0m/' | \
-)
paste -sd ''\
)█
@@ -30,3 +29,4 @@ df: /run/user/1000/doc: Operation not permitted
+
diff --git a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_paste_multiline-3.snap b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_paste_multiline-3.snap
index a1cb439e..0e4b997f 100644
--- a/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_paste_multiline-3.snap
+++ b/src/tests/integration/snapshots/mosaic__tests__integration__compatibility__fish_paste_multiline-3.snap
@@ -20,7 +20,6 @@ df: /run/user/1000/doc: Operation not permitted
awk '{printf "\\\\t%s\\\\t%4s / %4s %s\\\\n\n", $6, $3, $2, $5}' | \
sed -e 's/^\(.*\([8][5-9]\|[9][0-9]\)%.*\)$/\\\\e[0;31m\1\\\\e[0m/' -e 's/^\(.*\([7][5-9]\|[8][0-4]\)%.*\
)$/\\\\e[0;33m\1\\\\e[0m/' | \
-)
paste -sd ''\
)
@@ -29,4 +28,5 @@ df: /run/user/1000/doc: Operation not permitted
+
Bye from Mosaic!█