1. Shlomi Fish
  2. shlomi-fish-homepage

Commits

Shlomi Fish  committed 2620284

Add another test.

  • Participants
  • Parent commits 85c6704
  • Branches convert-from-jquery-treeview-to-jqtree-plugin

Comments (0)

Files changed (1)

File Tests/js/jqtree-from-h-w-json-nav-menu-test.js

View file
     module("NavMenu.Main.ToJQTree");
 
     test("NavMenu main test", function () {
-        expect(4);
+        expect(5);
 
         // TEST
         ok (true, "True is, well, true.");
             './../../',
             "relative path 3"
         );
+
+        // TEST
+        equal (
+            get_base_relative_path(
+                {
+                    base: 'http://www.shlomifish.org/',
+                    current: 'http://www.shlomifish.org/sod/foobar/l.html',
+                }
+            ),
+            './../../',
+            "relative path with trailing .html page"
+        );
     });
 }