Commits

Shlomi Fish committed 85c6704

Add another test.

  • Participants
  • Parent commits 9e3fe07
  • 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

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