File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1265,7 +1265,7 @@ describe('Plugin.Tooltip', function() {
12651265 describe ( 'text align' , function ( ) {
12661266 var defaults = Chart . defaults ;
12671267 var makeView = function ( title , body , footer ) {
1268- return {
1268+ const model = {
12691269 // Positioning
12701270 x : 100 ,
12711271 y : 100 ,
@@ -1275,6 +1275,7 @@ describe('Plugin.Tooltip', function() {
12751275 yAlign : 'top' ,
12761276
12771277 options : {
1278+ setContext : ( ) => model . options ,
12781279 enabled : true ,
12791280
12801281 padding : 5 ,
@@ -1343,6 +1344,7 @@ describe('Plugin.Tooltip', function() {
13431344 backgroundColor : 'rgb(0, 255, 255)'
13441345 } ]
13451346 } ;
1347+ return model ;
13461348 } ;
13471349 var drawBody = [
13481350 { name : 'save' , args : [ ] } ,
@@ -1370,6 +1372,7 @@ describe('Plugin.Tooltip', function() {
13701372 var mockContext = window . createMockContext ( ) ;
13711373 var tooltip = new Tooltip ( {
13721374 _chart : {
1375+ getContext : ( ) => ( { } ) ,
13731376 options : {
13741377 plugins : {
13751378 tooltip : {
You can’t perform that action at this time.
0 commit comments