Skip to content

Commit

Permalink
Test that nested metadata properties are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Aug 22, 2017
1 parent 8f2e289 commit 2565901
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/specs/test_meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,12 @@ describe('Meta endpoint', function () {
var options = {
url: config.apiEndpoint + '/meta/' + existingMeta.id,
jar: commonHelper.cookieJar,
json: {title: 'A different title'}
json: {
title: 'A different title',
properties: {
sensor: 'A different sensor'
}
}
};

commonHelper.logUserIn(existingUser, function (httpResponse, body) {
Expand All @@ -270,6 +275,7 @@ describe('Meta endpoint', function () {
expect(AWS.S3.prototype.putObject.callCount).to.eq(0);
Meta.findOne({_id: existingMeta.id}, function (_err, result) {
expect(result.title).to.eq('A different title');
expect(result.properties.sensor).to.eq('A different sensor');
done();
});
});
Expand Down

0 comments on commit 2565901

Please sign in to comment.