Commits

Shlomi Fish committed 1b46452

Add another test.

Comments (0)

Files changed (1)

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

     module("NavMenu.Main.ToJQTree");
 
     test("NavMenu main test", function () {
-        expect(7);
+        expect(8);
 
         // TEST
         ok (true, "True is, well, true.");
             ),
             './../me/intros/writers/'
         );
+
+        // TEST
+        equal (
+            get_relative_path(
+                {
+                    base: 'http://www.shlomifish.org/',
+                    current: 'http://www.shlomifish.org/me/intros/',
+                    to: 'humour/TheEnemy/te-heb.html'
+                }
+            ),
+            './../../humour/TheEnemy/te-heb.html'
+        );
     });
 }