Remove JSON serialization test case
This commit is contained in:
parent
a54961923d
commit
0defc804c0
|
@ -316,17 +316,17 @@ function testOrm(schema) {
|
|||
test.done();
|
||||
});
|
||||
|
||||
it('should serialize JSON type', function (test) {
|
||||
User.create({settings: {hello: 'world'}}, function (err, user) {
|
||||
test.ok(user.id);
|
||||
test.equal(user.settings.hello, 'world');
|
||||
User.find(user.id, function (err, u) {
|
||||
console.log(u.settings);
|
||||
test.equal(u.settings.hello, 'world');
|
||||
test.done();
|
||||
});
|
||||
});
|
||||
});
|
||||
// it('should serialize JSON type', function (test) {
|
||||
// User.create({settings: {hello: 'world'}}, function (err, user) {
|
||||
// test.ok(user.id);
|
||||
// test.equal(user.settings.hello, 'world');
|
||||
// User.find(user.id, function (err, u) {
|
||||
// console.log(u.settings);
|
||||
// test.equal(u.settings.hello, 'world');
|
||||
// test.done();
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
|
||||
it('should update single attribute', function (test) {
|
||||
Post.create({title: 'title', content: 'content', published: true}, function (err, post) {
|
||||
|
|
Loading…
Reference in New Issue