Commit 95fabe82 authored by Jaap Karan Singh's avatar Jaap Karan Singh

Fixed so it works on non-Windows systems and removed mongodb dev dependency

parent 20a35703
{
"name": "jsonschema-extra",
"version": "1.0.1",
"version": "1.0.2",
"description": "Extends jsonschema with custom types and attributes",
"main": "index.js",
"directories": {
......@@ -22,7 +22,6 @@
"lodash.isplainobject": "^2.4.1"
},
"devDependencies": {
"jsonschema": "^1.0.0",
"mongodb": "^1.4.16"
"jsonschema": "^1.0.0"
}
}
......@@ -83,9 +83,29 @@ validator.validate({ a: 'a', b: 'b' }, { type: 'plainObject' });
```
Testing
-------
Install `mocha` globally
```bash
$ npm install mocha -g
```
Run tests
```bash
$ npm test
```
Changelog
---------
### v1.0.2 (30 Sep 2014)
- Fixed so it works on non-Windows systems
- Removed mongodb dev dependency
### v1.0.1 (27 Sep 2014)
- Updated docs
- Updated package.json
......
......@@ -5,7 +5,6 @@
describe('#jsonschema-extra', function() {
var assert = require('assert');
var ObjectID = require('mongodb').ObjectID;
var validator = new (require('jsonschema').Validator)();
require(__dirname)(validator);
......@@ -77,14 +76,6 @@ describe('#jsonschema-extra', function() {
{
instance: '123456789012345678901234',
pass: true
},
{
instance: new ObjectID('123456789012345678901234'),
pass: true
},
{
instance: new ObjectID(),
pass: true
}
],
plainObject: [
......@@ -96,10 +87,6 @@ describe('#jsonschema-extra', function() {
instance: new String('abc'), // jshint ignore:line
pass: false
},
{
instance: new ObjectID('123456789012345678901234'),
pass: false
},
{
instance: { a: 1 },
pass: true
......
......@@ -2,7 +2,7 @@
'use strict';
var isPlainObject = require('lodash.isPlainObject');
var isPlainObject = require('lodash.isplainobject');
exports.error = function testError(er) {
return (er instanceof Error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment