[Pkg-javascript-commits] [ltx] 167/469: parse tests

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:01:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository ltx.

commit ebdd1172c0dd2988650fd82e792bc89eff56ada0
Author: Astro <astro at spaceboyz.net>
Date:   Mon Nov 22 01:21:00 2010 +0100

    parse tests
---
 test/test_parse.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/test/test_parse.js b/test/test_parse.js
index 9d479fa..423f416 100644
--- a/test/test_parse.js
+++ b/test/test_parse.js
@@ -9,10 +9,15 @@ vows.describe('ltx').addBatch({
             assert.equal(el.name, 'root');
             assert.equal(0, el.children.length);
         },
-        'raises error': function() {
+        'erroneous document raises error': function() {
             assert.throws(function() {
                 ltx.parse('<root></toor>');
             });
+        },
+        'incomplete document raises error': function() {
+            assert.throws(function() {
+                ltx.parse('<root>');
+            });
         }
     }
 }).run();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git



More information about the Pkg-javascript-commits mailing list