Skip to content

Commit

Permalink
In image tests containers, replace "Plotly.plot" by "Plotly.newPlot"
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinerg committed Jan 15, 2021
1 parent 1553a15 commit d688bba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/util/container_commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ var constants = require('./constants');
var containerCommands = {
cdHome: 'cd ' + constants.testContainerHome,
cpIndex: 'cp -f test/image/index.html ../server_app/index.html',
replacePlotbyNewPlot: 'sed -i \'s/Plotly.plot/Plotly.newPlot/g\' ../server_app/main.js',
injectEnv: [
'sed -i',
's/process.env.PLOTLY_MAPBOX_DEFAULT_ACCESS_TOKEN/\\\'' + constants.mapboxAccessToken + '\\\'/',
Expand All @@ -20,6 +21,7 @@ containerCommands.ping = [
containerCommands.setup = [
containerCommands.cpIndex,
containerCommands.injectEnv,
containerCommands.replacePlotbyNewPlot,
containerCommands.restart,
containerCommands.ping,
'sleep 5'
Expand Down

0 comments on commit d688bba

Please sign in to comment.