Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
JS API: Test complex payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Mar 16, 2016
1 parent c2d74c7 commit 5448b20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/tests/API Retrieve/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ async.series( [
device.retrieveResource( theResource.id ).then(
function( resource ) {
utils.assert( "deepEqual", resource.properties, {
"How many angels can dance on the head of a pin?": "As many as wanting."
"How many angels can dance on the head of a pin?": "As many as wanting.",
deep: {
"someKey": "someValue"
}
}, "Client: Retrieved properties are as expected." );
callback();
},
Expand Down
5 changes: 4 additions & 1 deletion tests/tests/API Retrieve/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ device.configure( {
interfaces: [ "oic.if.baseline" ],
discoverable: true,
properties: {
"How many angels can dance on the head of a pin?": "As many as wanting."
"How many angels can dance on the head of a pin?": "As many as wanting.",
deep: {
"someKey": "someValue"
}
}
} ).then(
function( resource ) {
Expand Down

0 comments on commit 5448b20

Please sign in to comment.