Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
corrideat committed Sep 25, 2023
1 parent 4c4b538 commit b431df5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/untrusted/lib/createContext.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ describe('Sandbox Context Creation', () => {
const ctx = createContext(allowedGlobals);

assert.equal(typeof ctx.Date, 'function');
assert.equal(ctx.Date, global.Date);
assert.notEqual(ctx.Date, global.Date);
assert.ok(new (ctx.Date as typeof Date)() instanceof global.Date);
assert.equal(typeof ctx.parseInt, 'function');
assert.notEqual(ctx.parseInt, global.parseInt);
assert.equal(
Expand Down

0 comments on commit b431df5

Please sign in to comment.