diff --git a/tests/reports.test.js b/tests/reports.test.js index 4e62c7de..40c2c05c 100644 --- a/tests/reports.test.js +++ b/tests/reports.test.js @@ -385,7 +385,7 @@ describe('reports', function ( ) { client.init(function afterInit ( ) { client.dataUpdate(nowData); - console.log('Sending profile to client'); + console.log('Sending profile to client'); // Load profile, we need to operate in UTC client.sbx.data.profile.loadData(exampleProfile); @@ -460,10 +460,12 @@ describe('reports', function ( ) { call(); }; + window.Nightscout.reportclient(); + client.init(function afterInit ( ) { client.dataUpdate(nowData); - console.log('Sending profile to client'); + console.log('Sending profile to client'); // Load profile, we need to operate in UTC client.sbx.data.profile.loadData(exampleProfile); @@ -481,13 +483,15 @@ describe('reports', function ( ) { var result = $('body').html(); - result.indexOf('