Skip to content

Commit

Permalink
Add tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Sep 30, 2024
1 parent 4b66894 commit e2a24d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/util/tests/BaseValueVisitor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const REJECTED_PROMISE = Promise.reject(REJECTED_ERROR);
REJECTED_ERROR.stack = 'some-stack';
PromiseUtil.handleRejection(REJECTED_PROMISE);

const OBJECT_PROXY = new Proxy({ a: 'florp' }, {});
const FUNCTION_PROXY = new Proxy(() => 123, {});

const EXAMPLES = [
undefined,
null,
Expand All @@ -28,7 +31,9 @@ const EXAMPLES = [
{ what: 'is up?' },
new Set(['x', 'y', 'z']),
(x, y) => { return x < y; },
class Flomp { /*empty*/ }
class Flomp { /*empty*/ },
OBJECT_PROXY,
FUNCTION_PROXY
];

/**
Expand Down

0 comments on commit e2a24d3

Please sign in to comment.