about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bulklmm.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/bulklmm.rs b/tests/bulklmm.rs
index eeec09c..b823b6c 100644
--- a/tests/bulklmm.rs
+++ b/tests/bulklmm.rs
@@ -232,11 +232,16 @@ async fn a_scan_plots_and_gemmas_refusal_points_here() {
     assert!(svg.trim_start().starts_with("<svg"), "an SVG");
     // Both thresholds the endpoint reports are drawn: alpha 0.05 (the
     // genome-wide line) and alpha 0.01, when there are enough permutations.
-    assert!(
-        svg.matches("class=\"thr").count() >= 1,
-        "the permutation thresholds are drawn"
+    // Two lines by default -- the genome-wide 0.05 and the stricter 0.01 --
+    // and never the loosest one unless it is asked for.
+    assert_eq!(
+        svg.matches("class=\"thr").count(),
+        2,
+        "the 0.05 and 0.01 thresholds are drawn, and not 0.10"
     );
     assert!(svg.contains("genome-wide (alpha 0.05)"), "the 5 % line is labelled");
+    assert!(svg.contains("alpha 0.01"), "and the 1 % line");
+    assert!(!svg.contains("alpha 0.10"), "the loosest line is not drawn by default");
     assert!(svg.contains("rsm10000000888"), "the summary names the peak");
 
     // A GEMMA permutation request now says where the thresholds are.