From 4affbbfca702472402c74deeb2e090e05efd97b6 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Thu, 2 Jul 2020 09:48:00 -0700 Subject: [PATCH] Address SES integration test with evaluate endowments --- packages/ses-integration-test/test/sanity.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ses-integration-test/test/sanity.test.js b/packages/ses-integration-test/test/sanity.test.js index 21723504ad..29c4996dc5 100644 --- a/packages/ses-integration-test/test/sanity.test.js +++ b/packages/ses-integration-test/test/sanity.test.js @@ -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" );