Remove JSON serialization test case

This commit is contained in:
Anatoliy Chakkaev 2012-08-14 18:47:59 +04:00
parent a54961923d
commit 0defc804c0
1 changed files with 11 additions and 11 deletions

View File

@ -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) {