1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-25 02:22:36 +00:00

list repositories in selector

This commit is contained in:
Steven Hugg
2019-05-09 13:22:24 -04:00
parent 85f0650bfe
commit 10f89d0c53
5 changed files with 51 additions and 37 deletions
+6 -2
View File
@@ -108,12 +108,16 @@ describe('Store', function() {
it('Should bind paths to Github', function(done) {
var store = mstore.createNewPersistentStore(test_platform_id, function(store) {
var gh = newGH(store);
var sess = {repopath:'foo/bar', url:'_',platform_id:'vcs',mainPath:'test.c'};
var sess = {repopath:'foo/bar', url:'_', platform_id:'vcs',mainPath:'test.c'};
gh.bind(sess, true);
assert.deepEqual(serv.getRepos(), {'foo/bar':{url:'_',platform_id:'vcs',mainPath:'test.c'}});
gh.bind(sess, false);
assert.deepEqual(serv.getRepos(), {});
done();
gh.getGithubSession('https://github.com/foo/bar/baz').then((sess) => {
assert.equal(sess.url, 'https://github.com/foo/bar');
assert.equal(sess.repopath, 'foo/bar');
done();
});
});
});