Minor test amends
This commit is contained in:
parent
d4a526f5b3
commit
50850d80be
|
@ -232,7 +232,7 @@ function testOrm(schema) {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should be exported to JSON', function (test) {
|
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')
|
if (schema.name === 'nano')
|
||||||
outString = '{"title":"hello, json","subject":null,"content":null,"date":1,"published":false,"likes":[],"related":[],"_rev":null,"id":1,"userId":null}'
|
outString = '{"title":"hello, json","subject":null,"content":null,"date":1,"published":false,"likes":[],"related":[],"_rev":null,"id":1,"userId":null}'
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ describe('defaults', function() {
|
||||||
it('should apply defaults on create', function(done) {
|
it('should apply defaults on create', function(done) {
|
||||||
Server.create(function(err, s) {
|
Server.create(function(err, s) {
|
||||||
s.port.should.equal(80);
|
s.port.should.equal(80);
|
||||||
console.log(s.__data);
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,7 +4,7 @@ var should = require('should');
|
||||||
describe('JSON property', function() {
|
describe('JSON property', function() {
|
||||||
var schema, Model;
|
var schema, Model;
|
||||||
|
|
||||||
it('could be defined', function() {
|
it('should be defined', function() {
|
||||||
schema = new Schema('memory');
|
schema = new Schema('memory');
|
||||||
Model = schema.define('Model', {propertyName: Schema.JSON});
|
Model = schema.define('Model', {propertyName: Schema.JSON});
|
||||||
var m = new Model;
|
var m = new Model;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
if (!process.env.TRAVIS) {
|
if (!process.env.TRAVIS) {
|
||||||
var semicov = require('semicov');
|
var semicov = require('semicov');
|
||||||
semicov.init('lib');
|
semicov.init('lib', 'JugglingDB');
|
||||||
process.on('exit', semicov.report);
|
process.on('exit', semicov.report);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue