mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-01-22 23:16:23 +00:00
github: check repo existence before importing
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user