Skip to content

Commit

Permalink
Get result by calling function outside of jasmine
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacco van den Berg committed Aug 16, 2024
1 parent 4393d60 commit 49b5722
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/specs/plugin.tooltip.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,8 @@ describe('Plugin.Tooltip', function() {

// Simulate `hasValue` returns false
expect(() => averagePositioner([{x: 'invalidNumber', y: 'invalidNumber'}])).not.toThrow();
expect(() => averagePositioner([{x: 'invalidNumber', y: 'invalidNumber'}])).toBe(false);
const result = averagePositioner([{x: 'invalidNumber', y: 'invalidNumber'}]);
expect(result).toBe(false);
});
});

Expand Down

0 comments on commit 49b5722

Please sign in to comment.