Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed Mar 2, 2021
1 parent 97be108 commit 8607ef8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/specs/plugin.tooltip.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ describe('Plugin.Tooltip', function() {
describe('text align', function() {
var defaults = Chart.defaults;
var makeView = function(title, body, footer) {
return {
const model = {
// Positioning
x: 100,
y: 100,
Expand All @@ -1275,6 +1275,7 @@ describe('Plugin.Tooltip', function() {
yAlign: 'top',

options: {
setContext: () => model.options,
enabled: true,

padding: 5,
Expand Down Expand Up @@ -1343,6 +1344,7 @@ describe('Plugin.Tooltip', function() {
backgroundColor: 'rgb(0, 255, 255)'
}]
};
return model;
};
var drawBody = [
{name: 'save', args: []},
Expand Down Expand Up @@ -1370,6 +1372,7 @@ describe('Plugin.Tooltip', function() {
var mockContext = window.createMockContext();
var tooltip = new Tooltip({
_chart: {
getContext: () => ({}),
options: {
plugins: {
tooltip: {
Expand Down

0 comments on commit 8607ef8

Please sign in to comment.