Minor test amends

This commit is contained in:
Anatoliy Chakkaev 2013-03-25 01:29:07 +04:00
parent d4a526f5b3
commit 50850d80be
4 changed files with 3 additions and 4 deletions

View File

@ -232,7 +232,7 @@ function testOrm(schema) {
});
it('should be exported to JSON', function (test) {
var outString = '{"title":"hello, json","subject":null,"content":null,"date":1,"published":false,"likes":[],"related":[],"id":1,"userId":null}'
var outString = '{"title":"hello, json","date":1,"published":false,"likes":[],"related":[],"id":1}'
if (schema.name === 'nano')
outString = '{"title":"hello, json","subject":null,"content":null,"date":1,"published":false,"likes":[],"related":[],"_rev":null,"id":1,"userId":null}'

View File

@ -19,7 +19,6 @@ describe('defaults', function() {
it('should apply defaults on create', function(done) {
Server.create(function(err, s) {
s.port.should.equal(80);
console.log(s.__data);
done();
});
});

View File

@ -4,7 +4,7 @@ var should = require('should');
describe('JSON property', function() {
var schema, Model;
it('could be defined', function() {
it('should be defined', function() {
schema = new Schema('memory');
Model = schema.define('Model', {propertyName: Schema.JSON});
var m = new Model;

View File

@ -1,6 +1,6 @@
if (!process.env.TRAVIS) {
var semicov = require('semicov');
semicov.init('lib');
semicov.init('lib', 'JugglingDB');
process.on('exit', semicov.report);
}