Skip to content

Commit

Permalink
fixed jshint script
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Dec 13, 2015
1 parent afd3831 commit 8b98518
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .tonic_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ var Ajv = require('ajv');
var ajv = Ajv({allErrors: true});

var schema = {
"properties": {
"foo": { "type": "string" },
"bar": { "type": "number", "maximum": 3 }
}
"properties": {
"foo": { "type": "string" },
"bar": { "type": "number", "maximum": 3 }
}
};

var validate = ajv.compile(schema);
Expand All @@ -14,7 +14,7 @@ test({"foo": "abc", "bar": 2});
test({"foo": 2, "bar": 4});

function test(data) {
var valid = validate(data);
if (valid) console.log('Valid!');
else console.log('Invalid: ' + ajv.errorsText(validate.errors));
var valid = validate(data);
if (valid) console.log('Valid!');
else console.log('Invalid: ' + ajv.errorsText(validate.errors));
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
".tonic_example.js"
],
"scripts": {
"jshint": "jshint lib/**/*.js --exclude lib/dotjs/**/*",
"jshint": "jshint lib/*.js lib/**/*.js --exclude lib/dotjs/**/*",
"test-spec": "mocha spec/*.spec.js -R spec",
"test-fast": "AJV_FAST_TEST=true npm run test-spec",
"test-debug": "mocha spec/*.spec.js --debug-brk -R spec",
Expand Down

0 comments on commit 8b98518

Please sign in to comment.