Skip to content

Commit

Permalink
Type should be detected (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Aug 21, 2018
1 parent 615a908 commit 6a817f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/serial/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ describe("serial/query", function () {
Test = gpf.define({
$class: "Test"

"[_name]": [new gpf.attributes.serial.Name("Name")]
"[_name]": [new gpf.attributes.Serializable({
name: "Name"
}],
_name: ""

});
Expand All @@ -18,6 +20,7 @@ describe("serial/query", function () {
var properties = gpf.serial.query(Test);
assert(properties._name);
assert(properties._name.name === "Name");
assert(properties._name.type === gpf.serial.types.string);
});

});

0 comments on commit 6a817f4

Please sign in to comment.