summary refs log tree commit diff
path: root/lib/tests/modules
diff options
context:
space:
mode:
author(cdep)illabout <cdep.illabout@gmail.com>2019-02-07 10:33:48 +0900
committer(cdep)illabout <cdep.illabout@gmail.com>2019-02-07 10:33:48 +0900
commitdcbd13631964cc2977df7faead75deb3bee749a8 (patch)
tree040b3ebe3177e870a57404a2bee907b9a9b9e172 /lib/tests/modules
parent81fa1e392be44585fe83e26921ce3bd720891def (diff)
downloadnixpkgs-dcbd13631964cc2977df7faead75deb3bee749a8.tar
nixpkgs-dcbd13631964cc2977df7faead75deb3bee749a8.tar.gz
nixpkgs-dcbd13631964cc2977df7faead75deb3bee749a8.tar.bz2
nixpkgs-dcbd13631964cc2977df7faead75deb3bee749a8.tar.lz
nixpkgs-dcbd13631964cc2977df7faead75deb3bee749a8.tar.xz
nixpkgs-dcbd13631964cc2977df7faead75deb3bee749a8.tar.zst
nixpkgs-dcbd13631964cc2977df7faead75deb3bee749a8.zip
Fix the documentation for the tests to reflect what is actually happening.
Diffstat (limited to 'lib/tests/modules')
-rw-r--r--lib/tests/modules/alias-with-priority-can-override.nix7
-rw-r--r--lib/tests/modules/alias-with-priority.nix3
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/tests/modules/alias-with-priority-can-override.nix b/lib/tests/modules/alias-with-priority-can-override.nix
index ccb70b779a0..9a18c9d9f61 100644
--- a/lib/tests/modules/alias-with-priority-can-override.nix
+++ b/lib/tests/modules/alias-with-priority-can-override.nix
@@ -1,5 +1,8 @@
 # This is a test to show that mkAliasOptionModule sets the priority correctly
 # for aliased options.
+#
+# This test shows that an alias with a high priority is able to override
+# a non-aliased option.
 
 { config, lib, ... }:
 
@@ -34,8 +37,8 @@ with lib;
     # Create an alias for the "enable" option.
     (mkAliasOptionModule [ "enableAlias" ] [ "enable" ])
 
-    # Disable the aliased option, but with a default (low) priority so it
-    # should be able to be overridden by the next import.
+    # Disable the aliased option with a high priority so it
+    # should override the next import.
     ( { config, lib, ... }:
       {
         enableAlias = lib.mkForce false;
diff --git a/lib/tests/modules/alias-with-priority.nix b/lib/tests/modules/alias-with-priority.nix
index ba25b527aa2..a35a06fc697 100644
--- a/lib/tests/modules/alias-with-priority.nix
+++ b/lib/tests/modules/alias-with-priority.nix
@@ -1,5 +1,8 @@
 # This is a test to show that mkAliasOptionModule sets the priority correctly
 # for aliased options.
+#
+# This test shows that an alias with a low priority is able to be overridden
+# with a non-aliased option.
 
 { config, lib, ... }: