Permalink
Browse files

-Upgrading munit and nlint packages

-Adding travis script
  • Loading branch information...
1 parent b2b9bfa commit 9be643dfde7ab67c5d22cd6358959a7f7f96dc33 @codenothing committed Mar 30, 2013
Showing with 13 additions and 9 deletions.
  1. +1 −0 .gitignore
  2. +3 −0 .travis.yml
  3. +2 −2 build/test.js
  4. +2 −2 package.json
  5. +1 −1 test/files/test-files.js
  6. +2 −2 test/test-clean.js
  7. +2 −2 test/test-invalid.js
View
@@ -1 +1,2 @@
node_modules/
+build/results/
View
@@ -0,0 +1,3 @@
+language: node_js
+node_js:
+ - "0.8"
View
@@ -1,4 +1,4 @@
-global.MUnit = require( 'munit' );
+global.munit = require( 'munit' );
global.JSONLint = require( '../jsonlint.js' );
-MUnit.render( __dirname + '/../test/' );
+munit.render( __dirname + '/../test/', { junit: __dirname + '/results/' } );
View
@@ -21,7 +21,7 @@
"test": "make test"
},
"devDependencies": {
- "nlint": "0.0.3",
- "munit": "0.0.1"
+ "nlint": "0.0.4",
+ "munit": "0.0.3"
}
}
View
@@ -82,7 +82,7 @@ tests.forEach(function( test ) {
expect += test.error ? 2 : 1;
});
-MUnit( 'Files', expect, function( assert ) {
+munit( 'Files', expect, function( assert ) {
tests.forEach(function( test ) {
fs.readFile( __dirname + '/json/' + test.file, 'utf-8', function( e, contents ) {
if ( e ) {
View
@@ -63,10 +63,10 @@ var tests = [
"{ \"test\": null, \"ing\": true, \"a\": false, \"b\": -101.101e-101 }"
];
-MUnit( 'Clean', tests.length, function( assert ) {
+munit( 'Clean', tests.length, function( assert ) {
tests.forEach(function( test, index ) {
var lint = JSONLint( test );
- assert.ok( index, ! lint.error );
+ assert.ok( index + '', ! lint.error );
});
});
View
@@ -199,8 +199,8 @@ var tests = {
}
};
-MUnit( 'Inavlid', Object.keys( tests ).count * 2, function( assert ) {
- MUnit.each( tests, function( object, name ) {
+munit( 'Inavlid', Object.keys( tests ).count * 2, function( assert ) {
+ munit.each( tests, function( object, name ) {
var lint = JSONLint( object.json, object.options );
if ( ! lint.error ) {

0 comments on commit 9be643d

Please sign in to comment.