Skip to content

Commit

Permalink
Improves coverage (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Aug 30, 2018
1 parent 290c822 commit 5d39e4f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/serial/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ describe("serial/property", function () {
assert(property.required === false);
});

it("validates properties", function () {
var exceptionCaught;
try {
_gpfSerialPropertyCheck({
name: "OK",
type: gpf.serial.types.string,
required: false
});
} catch (e) {
exceptionCaught = e;
}
assert(!exceptionCaught);
});

values
.concat(undefined)
.forEach(function (invalidName) {
Expand Down

0 comments on commit 5d39e4f

Please sign in to comment.