summary refs log tree commit diff
path: root/pkgs/applications/office/libreoffice/darwin/update-test.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/office/libreoffice/darwin/update-test.nix')
-rw-r--r--pkgs/applications/office/libreoffice/darwin/update-test.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/office/libreoffice/darwin/update-test.nix b/pkgs/applications/office/libreoffice/darwin/update-test.nix
index d77992263f3..994a923c556 100644
--- a/pkgs/applications/office/libreoffice/darwin/update-test.nix
+++ b/pkgs/applications/office/libreoffice/darwin/update-test.nix
@@ -4,7 +4,8 @@
 let
   inherit (import ./update-utils.nix { inherit (pkgs) lib; })
     extractLatestVersionFromHtml
-    extractSha256FromHtml;
+    extractSha256FromHtml
+    getLatestStableVersion;
 in
 nixt.mkSuite "LibreOffice Updater"
 {
@@ -38,6 +39,8 @@ nixt.mkSuite "LibreOffice Updater"
     in
     "7.3.3" == actual;
 
+  "should extract latest stable version from website" = (builtins.compareVersions getLatestStableVersion "7.3.3") >= 0;
+
   "should extract sha256 from html" =
     let
       sha256Html = "50ed3deb8d9c987516e2687ebb865bca15486c69da79f1b6d74381e43f2ec863  LibreOffice_7.3.3_MacOS_aarch64.dmg\n";