Skip to content

Commit

Permalink
Test that arson.decode(arson.encode(global)) works.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Jan 29, 2016
1 parent a62a460 commit 7a92289
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,9 @@ describe("encoding and decoding", function () {
var result = arson.decode(arson.encode(a));
assert.strictEqual(result.x, result.y);
});

it("should work with the global object", function () {
var copy = arson.decode(arson.encode(global));
assert.strictEqual(copy.global, copy);
});
});

0 comments on commit 7a92289

Please sign in to comment.