Skip to content

Commit f69f098

Browse files
author
Aries Yuwono
committed
try with synch method
1 parent 48e9541 commit f69f098

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

test-complete/nodejs-transform-javascript.js

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ describe('Transform test with javascript', function(){
100100
});
101101

102102

103-
it('should modify during query', function(done){
103+
it('should modify during query', function(){
104104
this.timeout(10000);
105105
db.documents.query(
106106
q.where(
@@ -112,9 +112,22 @@ describe('Transform test with javascript', function(){
112112
//console.log(JSON.stringify(response, null, 4));
113113
response[0].content.should.have.property('timestamp');
114114
response[0].content.userName.should.equal('rest-reader');
115-
done();
116-
}, done);
115+
});
117116
});
117+
/*it('should modify during query - synch', function(){
118+
this.timeout(10000);
119+
db.documents.query(
120+
q.where(
121+
q.word('title', 'transform')
122+
).
123+
slice(1, 10, q.transform(transformName))
124+
).
125+
result(function(response) {
126+
//console.log(JSON.stringify(response, null, 4));
127+
response[0].content.should.have.property('timestamp');
128+
response[0].content.userName.should.equal('rest-reader');
129+
});
130+
});*/
118131
it('should modify during query , slice without paging parameters, Bug 111', function(done){
119132
db.documents.query(
120133
q.where(

0 commit comments

Comments
 (0)