Skip to content

Commit

Permalink
travis #1: workaround for tests not finding storage.addHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLeoni committed Aug 17, 2020
1 parent b342fcb commit 30fa303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extensions/botch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class Scratch3Botch {
log.log('Botch: on PROJECT_LOADED');
this.storage = this.runtime.storage;
if (!this.storageHelper){
if (this.runtime.storage){ // in some tests it is not defined ...
// in some tests it is not defined ...
if (this.storage && this.storage.addHelper){
this.storageHelper = new BotchStorageHelper(this.runtime.storage);
this.storage.addHelper(this.storageHelper);
} else {
Expand Down

0 comments on commit 30fa303

Please sign in to comment.