Skip to content

Commit

Permalink
use assert instead of chai
Browse files Browse the repository at this point in the history
  • Loading branch information
ashaffer committed Mar 7, 2015
1 parent e6a3a0c commit 039796c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"repository": {
"type": "git",
"url": "http://github.com/immodel/mongo-sync"
"url": "immodel/mongo-sync"
},
"keywords": [
"mongo",
Expand All @@ -28,7 +28,6 @@
"immodel": "^0.1.1"
},
"devDependencies": {
"chai": "^2.1.0",
"mocha": "^2.1.0",
"immodel": "git://github.com/immodel/immodel",
"mongo-id": "git://github.com/immodel/mongo-id"
Expand Down
8 changes: 4 additions & 4 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var expect = require('chai').expect;
var assert = require('assert');
var model = require('immodel').bootstrap();

require('mongo-id')(model);
Expand All @@ -15,9 +15,9 @@ describe('mongo-sync', function() {
var doc = new User({username: 'test'});

doc.save(function(err, user) {
expect(err).to.be.null;
expect(user.get('username')).to.equal('test');
expect(user.get('_id')).to.equal(doc.get('_id'));
assert(err === null);
assert(user.get('username') === 'test');
assert(user.get('_id') === doc.get('_id'));
done();
});
});
Expand Down

0 comments on commit 039796c

Please sign in to comment.