electron-drag-drop
Version:
Easily manipulate drag and drop in Electron.
35 lines (29 loc) • 731 B
JavaScript
;
const path = require('path');
const electron = require('electron');
const {Application} = require('spectron');
const assert = require('assert');
describe('electron', function () {
this.timeout(0);
let app = null;
before(function () {
app = new Application({
path: electron,
args: [path.join(__dirname, 'fixtures', 'app')]
});
return app.start();
});
after(function () {
if (app && app.isRunning()) {
return app.stop();
}
});
it('should be ok in main process', function () {
return app.client
.waitUntilTextExists('.label', 'Ready')
.getRenderProcessLogs()
.then(function (logs) {
assert.equal(logs.length, 0);
});
});
});