Remove logging
This commit is contained in:
parent
6e1037f987
commit
27a16dbeae
|
@ -416,13 +416,11 @@ function testOrm(schema) {
|
||||||
post.updateAttribute('title', 'New title', function () {
|
post.updateAttribute('title', 'New title', function () {
|
||||||
test.equal(post.title, 'New title');
|
test.equal(post.title, 'New title');
|
||||||
test.ok(!post.propertyChanged('title'));
|
test.ok(!post.propertyChanged('title'));
|
||||||
console.log('hahaha', post.content, post.__data.content);
|
|
||||||
test.equal(post.content, 'New content', 'dirty state saved');
|
test.equal(post.content, 'New content', 'dirty state saved');
|
||||||
test.ok(post.propertyChanged('content'));
|
test.ok(post.propertyChanged('content'));
|
||||||
post.reload(function (err, post) {
|
post.reload(function (err, post) {
|
||||||
test.equal(post.title, 'New title');
|
test.equal(post.title, 'New title');
|
||||||
test.ok(!post.propertyChanged('title'), 'title not changed');
|
test.ok(!post.propertyChanged('title'), 'title not changed');
|
||||||
console.log(post.content);
|
|
||||||
test.equal(post.content, 'content', 'real value turned back');
|
test.equal(post.content, 'content', 'real value turned back');
|
||||||
test.ok(!post.propertyChanged('content'), 'content unchanged');
|
test.ok(!post.propertyChanged('content'), 'content unchanged');
|
||||||
test.done();
|
test.done();
|
||||||
|
@ -438,7 +436,6 @@ function testOrm(schema) {
|
||||||
test.ok(countOfposts > 0);
|
test.ok(countOfposts > 0);
|
||||||
test.ok(posts[0] instanceof Post);
|
test.ok(posts[0] instanceof Post);
|
||||||
countOfpostsFiltered = posts.filter(function (p) {
|
countOfpostsFiltered = posts.filter(function (p) {
|
||||||
console.log(p.title);
|
|
||||||
return p.title === 'title';
|
return p.title === 'title';
|
||||||
}).length;
|
}).length;
|
||||||
test.done();
|
test.done();
|
||||||
|
|
Loading…
Reference in New Issue