[Pkg-javascript-commits] [node-cssstyle] 24/39: made testing easier, I hope
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Sep 20 20:22:35 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository node-cssstyle.
commit 19773d0c3d4fbf679a2cc68794db60b90fd99d32
Author: Chad Walker <chad at chad-cat-lore-eddie.com>
Date: Sun Dec 1 16:26:37 2013 -0600
made testing easier, I hope
---
README.md | 4 ++--
package.json | 6 ++++++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 1deb09a..80f3365 100644
--- a/README.md
+++ b/README.md
@@ -10,9 +10,9 @@ Well, NV wants to keep CSSOM fast (which I can appreciate) and CSS2Properties ar
How do I test this code?
---
-Use nodeunit, I invoke like this:
+`npm test` should do the trick, assuming you have the dev dependencies installed:
> ```
-> $ nodeunit tests
+> $ npm test
>
> tests
> ✔ Verify Has Properties
diff --git a/package.json b/package.json
index 7878fa5..861df95 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,12 @@
"dependencies": {
"cssom" : "0.3.x"
},
+ "devDependencies" : {
+ "nodeunit": "~0.8.0"
+ },
+ "scripts": {
+ "test": "nodeunit tests"
+ },
"licenses": [
{
"type": "MIT",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-cssstyle.git
More information about the Pkg-javascript-commits
mailing list