diff --git a/index.html b/index.html index 962acf2c..925819c9 100644 --- a/index.html +++ b/index.html @@ -111,7 +111,7 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
Could not import " + githuburl + ".
" + e); }); diff --git a/test/cli/testgithub.js b/test/cli/testgithub.js index 79aebbd7..242b0858 100644 --- a/test/cli/testgithub.js +++ b/test/cli/testgithub.js @@ -70,6 +70,17 @@ describe('Store', function() { }); }); + it('Should import from Github (invalid URL)', function(done) { + var store = mstore.createNewPersistentStore('_FOO', function(store) { + var gh = newGH(store, '_FOO'); + gh.importAndPull('https://github.com/pzpinfo/NOEXISTSREPO').catch( (e) => { + console.log(e); + assert.deepEqual(serv.getRepos(), {}); + done(); + }); + }); + }); + it('Should import from Github (subdirectory tree)', function(done) { var store = mstore.createNewPersistentStore('nes', function(store) { var gh = newGH(store, 'nes');