Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test modified

  • Loading branch information...
commit 036b4fce29f9f5814581530bcfb50b1c9d42b10e 1 parent dae2a6b
@angdev authored
Showing with 27 additions and 2 deletions.
  1. +3 −2 package.json
  2. +5 −0 test/main.js
  3. +19 −0 test/npm-debug.log
View
5 package.json
@@ -1,6 +1,6 @@
{
"name": "md4template",
- "version": "0.0.1",
+ "version": "0.0.2",
"description": "markdown for template engine",
"main": "lib/main.js",
"scripts": {
@@ -17,10 +17,11 @@
"author": "angdev",
"license": "BSD",
"gitHead": "2b571ee1e0603e1798dbc95ca058ceb090911dfb",
- "readmeFilename": "readme.md",
+ "readmeFilename": "README.md",
"dependencies": {
"node-markdown": "*"
},
+ "main": "./lib/main",
"scripts": {
"test": "node ./test/main"
}
View
5 test/main.js
@@ -12,6 +12,8 @@ function test_failed() {
process.exit(1);
}
+md4tpl.config['prefix'] = 'md_';
+
//parseFile test
test_html = md4tpl.parseFile(path.join(__dirname, 'test.md'));
console.log(blue + 'parseFile : \n' + reset + test_html);
@@ -36,6 +38,9 @@ for(var k in test_html_arr) {
continue;
}
console.log(red + k);
+ if(k.indexOf(md4tpl.config['prefix']) != 0) {
+ test_failed();
+ }
}
console.log(reset + 'Test OK');
View
19 test/npm-debug.log
@@ -0,0 +1,19 @@
+0 info it worked if it ends with ok
+1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'test' ]
+2 info using npm@1.1.69
+3 info using node@v0.8.16
+4 verbose read json /home/fegs/webapp/md4template/test/package.json
+5 error Error: ENOENT, open '/home/fegs/webapp/md4template/test/package.json'
+6 error If you need help, you may report this log at:
+6 error <http://github.com/isaacs/npm/issues>
+6 error or email it to:
+6 error <npm-@googlegroups.com>
+7 error System Linux 3.2.0-31-generic
+8 error command "/usr/local/bin/node" "/usr/local/bin/npm" "test"
+9 error cwd /home/fegs/webapp/md4template/test
+10 error node -v v0.8.16
+11 error npm -v 1.1.69
+12 error path /home/fegs/webapp/md4template/test/package.json
+13 error code ENOENT
+14 error errno 34
+15 verbose exit [ 34, true ]
Please sign in to comment.
Something went wrong with that request. Please try again.