1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-01-22 23:16:23 +00:00

github: confirm push w/ dialog

This commit is contained in:
Steven Hugg
2019-05-12 15:01:33 -04:00
parent efe0e032fb
commit 1cb3c960ee
3 changed files with 34 additions and 3 deletions

View File

@@ -107,13 +107,14 @@ describe('Store', function() {
for (var i=0; i<256; i++)
binfile[i] = i;
var files = [
{path:'text.txt', data:'hello world ' + Math.random()},
{path:'text.txt', data:'hello world'},
{path:'data.bin', data:binfile}
];
gh.commit('https://github.com/pzpinfo/testrepo3', 'test commit', files).then( (sess) => {
return gh.push(sess);
}).then( (sess) => {
console.log(sess.commit);
assert.equal(0, sess.commit.files.length);
done();
});
});