Skip to content

Commit

Permalink
Address SES integration test with evaluate endowments
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Jul 2, 2020
1 parent 58940b4 commit 4affbbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ses-integration-test/test/sanity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import "ses";

test("sanity", t => {
t.equal(lockdown(), true, "lockdown runs successfully");
const c = new Compartment();
const c = new Compartment({ abc: 456 });
t.equal(c.evaluate("123"), 123, "simple evaluate succeeds");
t.equal(
c.evaluate("abc", { endowments: { abc: 456 } }),
c.evaluate("abc"),
456,
"endowment succeeds"
);
Expand Down

0 comments on commit 4affbbf

Please sign in to comment.