Skip to content

Commit

Permalink
Add nested fields
Browse files Browse the repository at this point in the history
  • Loading branch information
neumino committed Jun 12, 2016
1 parent 8609293 commit 2c09c1a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/writing-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,15 @@ describe('writing-data.js', function(){
compare(query, done);
});

it('update - 34', function(done) {
var query = r.db(TEST_DB).table(TEST_TABLE).get(1).update({foo: {bar: {buzz: 2}}});
compare(query, done);
});
it('update - 34 - follow up', function(done) {
var query = r.db(TEST_DB).table(TEST_TABLE).get(1);
compare(query, done);
});

it('replace - 1', function(done) {
var query = r.db(TEST_DB).table(TEST_TABLE).get(1).replace({id: 1, foo: 200});
compare(query, done);
Expand Down

0 comments on commit 2c09c1a

Please sign in to comment.