Revert "Update to Electron v2.0.0-beta.6 (#46552)"

This reverts commit 88603b377d.
This commit is contained in:
Benjamin Pasero
2018-04-06 09:33:18 +02:00
parent 00cc78d7bd
commit 24d87a7eb0
38 changed files with 3793 additions and 7310 deletions

View File

@@ -16,9 +16,9 @@ suite('Cache', () => {
const cache = new Cache(() => TPromise.as(counter++));
return cache.get()
.then(c => assert.equal(c, 0), () => assert.fail('Unexpected assertion error'))
.then(c => assert.equal(c, 0), () => assert.fail())
.then(() => cache.get())
.then(c => assert.equal(c, 0), () => assert.fail('Unexpected assertion error'));
.then(c => assert.equal(c, 0), () => assert.fail());
});
test('simple error', () => {
@@ -26,9 +26,9 @@ suite('Cache', () => {
const cache = new Cache(() => TPromise.wrapError(new Error(String(counter++))));
return cache.get()
.then(() => assert.fail('Unexpected assertion error'), err => assert.equal(err.message, 0))
.then(() => assert.fail(), err => assert.equal(err.message, 0))
.then(() => cache.get())
.then(() => assert.fail('Unexpected assertion error'), err => assert.equal(err.message, 0));
.then(() => assert.fail(), err => assert.equal(err.message, 0));
});
test('should retry cancellations', () => {