{"size": 426, "ext": "js", "max_stars_repo_path": "packages/ses-integration-test/test/sanity.test.js", "max_stars_repo_name": "kumavis/SES-shim", "max_stars_repo_stars_event_min_datetime": "2022-03-06T10:54:58.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-06T10:54:58.000Z", "max_issues_repo_path": "packages/ses-integration-test/test/sanity.test.js", "max_issues_repo_name": "kumavis/SES-shim", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/ses-integration-test/test/sanity.test.js", "max_forks_repo_name": "kumavis/SES-shim", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.6666666667, "max_line_length": 62, "alphanum_fraction": 0.6314553991}
/* global Compartment */
import test from "tape";

// eslint-disable-next-line import/no-unresolved
import * as SES from "ses";

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