Skip to content

Commit

Permalink
test(controller): call tessel.setWiFiState with updated arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Aug 9, 2017
1 parent ddba290 commit 582b39c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/unit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2241,6 +2241,20 @@ exports['controller.setWiFiState'] = {
test.done();
});
},

setWiFiStateMissingEnable(test) {
test.expect(1);
this.setWiFiState.restore();

controller.setWiFiState({})
.then(() => {
test.ok(false, 'This should not be successful');
test.done();
}).catch(error => {
test.equal(error.toString(), 'Error: Missing Wifi State: property "enable" not provided.');
test.done();
});
},
};

exports['controller.disableAccessPoint'] = {
Expand Down

0 comments on commit 582b39c

Please sign in to comment.