Skip to content

Commit

Permalink
The function should return the object (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Sep 18, 2018
1 parent b849771 commit 2829abe
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/serial/raw/from.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ describe("serial/raw/from", function () {
});

it("initializes the instance from the object containing the serializable properties", function () {
var a = new A();
aFromRaw(a, {
id: "id",
name: "Test"
});
var a = new A(),
result = aFromRaw(a, {
id: "id",
name: "Test"
});
assert(a === result);
assert(a._id === "id");
assert(a._name === "Test");
});
Expand Down

0 comments on commit 2829abe

Please sign in to comment.