]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
updated test file 1197/head
authorDan Hagman <hagman.dan@gmail.com>
Fri, 18 Oct 2013 17:31:03 +0000 (10:31 -0700)
committerDan Hagman <hagman.dan@gmail.com>
Fri, 18 Oct 2013 17:31:03 +0000 (10:31 -0700)
test/lang/tl-ph.js

index f95196c7cbef1d780f790d2f1846ad03a56d1708..a364c594c9c5529bad2576b62c7d2f30907ba5c8 100644 (file)
@@ -353,9 +353,9 @@ exports["lang:tl-ph"] = {
     },
     
     "returns the name of the language" : function (test) {
-        test.expect(1);
-        
-        test.equal(require('../../lang/tl-ph'), 'tl-ph', "module should export tl-ph");
+        if (typeof module !== 'undefied' && module.exports) {
+            test.equal(require('../../lang/tl-ph'), 'tl-ph', "module should export tl-ph");
+        }
         
         test.done();
     }