Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
test: remove deps param
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed May 5, 2021
1 parent b4950d4 commit 5ea96bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/utils/__test__/computeExpression.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ describe('.compute', () => {
it('should use key-based retrieval during computation', () => {
const el = document.createElement('div');

expect(computeExpression('count', el, true, {}, ['count'])({ count: 0 })).toEqual(0);
expect(computeExpression('count', el, true, {})({ count: 0 })).toEqual(0);
});

it('should compute correctly', () => {
const el = document.createElement('div');
expect(computeExpression('count + 1', el, true, {}, ['count'])({ count: 0 })).toEqual(1);
expect(computeExpression('count + 1', el, true, {})({ count: 0 })).toEqual(1);
});

it('should not return the value', () => {
const el = document.createElement('div');
expect(computeExpression('count + 1', el, false, {}, ['count'])({ count: 0 })).toEqual(
expect(computeExpression('count + 1', el, false, {})({ count: 0 })).toEqual(
undefined
);
});
Expand Down

0 comments on commit 5ea96bf

Please sign in to comment.