pull/1067/head
Vincent 6 years ago
parent aac18cd683
commit 553713c311

@ -1,45 +1,45 @@
/* eslint-disable func-names */ // /* eslint-disable func-names */
/* eslint-disable import/no-extraneous-dependencies */ // /* eslint-disable import/no-extraneous-dependencies */
const common = require('./common'); // const common = require('./common');
const { afterEach, beforeEach, describe, it } = require('mocha'); // const { afterEach, beforeEach, describe, it } = require('mocha');
describe('Do Vince test', function() { // describe('Do Vince test', function() {
let app; // let app;
let app2; // let app2;
this.timeout(60000); // this.timeout(60000);
this.slow(15000); // this.slow(15000);
beforeEach(async () => { // beforeEach(async () => {
await common.killallElectron(); // await common.killallElectron();
await common.stopStubSnodeServer(); // await common.stopStubSnodeServer();
const app1Props = { // const app1Props = {
mnemonic: common.TEST_MNEMONIC1, // mnemonic: common.TEST_MNEMONIC1,
displayName: common.TEST_DISPLAY_NAME1, // displayName: common.TEST_DISPLAY_NAME1,
stubSnode: true, // stubSnode: true,
}; // };
const app2Props = { // const app2Props = {
mnemonic: common.TEST_MNEMONIC2, // mnemonic: common.TEST_MNEMONIC2,
displayName: common.TEST_DISPLAY_NAME2, // displayName: common.TEST_DISPLAY_NAME2,
stubSnode: true, // stubSnode: true,
}; // };
[app, app2] = await Promise.all([ // [app, app2] = await Promise.all([
common.startAndStub(app1Props), // common.startAndStub(app1Props),
common.startAndStub2(app2Props), // common.startAndStub2(app2Props),
]); // ]);
}); // });
afterEach(async () => { // afterEach(async () => {
await common.stopApp(app); // await common.stopApp(app);
await common.killallElectron(); // await common.killallElectron();
await common.stopStubSnodeServer(); // await common.stopStubSnodeServer();
}); // });
it('Can do first check', async () => { // it('Can do first check', async () => {
app = await common.startAndAssureCleanedApp(); // app = await common.startAndAssureCleanedApp();
return app; // return app;
}); // });
}); // });

@ -40,7 +40,7 @@
"test-lib-view": "NODE_ENV=test-lib yarn run start", "test-lib-view": "NODE_ENV=test-lib yarn run start",
"test-loki-view": "NODE_ENV=test-loki yarn run start", "test-loki-view": "NODE_ENV=test-loki yarn run start",
"test-electron": "yarn grunt test", "test-electron": "yarn grunt test",
"test-integration-session": "ELECTRON_DISABLE_SANDBOX=1 mocha --exit --timeout 5000000 integration_test/integration_test.js", "test-integration-session": "ELECTRON_DISABLE_SANDBOX=1 mocha --exit --timeout 5000 integration_test/integration_test.js",
"test-node": "mocha --recursive --exit test/app test/modules ts/test libloki/test/node", "test-node": "mocha --recursive --exit test/app test/modules ts/test libloki/test/node",
"test-node-coverage": "nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test libloki/test/node", "test-node-coverage": "nyc --reporter=lcov --reporter=text mocha --recursive test/app test/modules ts/test libloki/test/node",
"test-node-coverage-html": "nyc --reporter=lcov --reporter=html mocha --recursive test/a/* */pp test/modules ts/test libloki/test/node", "test-node-coverage-html": "nyc --reporter=lcov --reporter=html mocha --recursive test/a/* */pp test/modules ts/test libloki/test/node",

Loading…
Cancel
Save