[Pkg-javascript-commits] [ltx] 189/469: tests: proper use of vows

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:02:13 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 e0b1bba31e45908bde8b2eb8d5e98bc4e45c1139
Author: Astro <astro at spaceboyz.net>
Date:   Mon Dec 12 17:37:48 2011 +0100

    tests: proper use of vows
---
 package.json                              | 1 +
 test/{test_element.js => element-test.js} | 2 +-
 test/{test_parse.js => parse-test.js}     | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index 8410ae8..06c08a4 100644
--- a/package.json
+++ b/package.json
@@ -17,4 +17,5 @@
 ,"contributors": ["Stephan Maka"]
 ,"licenses": [{"type": "MIT"}]
 ,"engine": "node"
+,"scripts": {"test":"vows --spec"}
 }
diff --git a/test/test_element.js b/test/element-test.js
similarity index 99%
rename from test/test_element.js
rename to test/element-test.js
index 5330c4f..ad204ab 100644
--- a/test/test_element.js
+++ b/test/element-test.js
@@ -122,4 +122,4 @@ vows.describe('ltx').addBatch({
 	    assert.equal(clone.getChildText('description'), 'foobar');
 	}
     }
-}).run();
+}).export(module);
diff --git a/test/test_parse.js b/test/parse-test.js
similarity index 97%
rename from test/test_parse.js
rename to test/parse-test.js
index e44629a..0f05708 100644
--- a/test/test_parse.js
+++ b/test/parse-test.js
@@ -24,4 +24,4 @@ vows.describe('ltx').addBatch({
             });
         }
     }
-}).run();
+}).export(module);

-- 
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