Run prettier over ALL files once

No other changes done in this commit
This commit is contained in:
Veeck
2020-05-11 22:22:32 +02:00
parent 3a5a29efc0
commit abb5dc5739
160 changed files with 2369 additions and 2210 deletions

View File

@@ -4,7 +4,7 @@ const expect = require("chai").expect;
const describe = global.describe;
const it = global.it;
describe("Development console tests", function() {
describe("Development console tests", function () {
// FIXME: This tests fail and crash another tests
// Suspect problem with window focus
return false;
@@ -14,47 +14,47 @@ describe("Development console tests", function() {
var app = null;
before(function() {
before(function () {
// Set config sample for use in test
process.env.MM_CONFIG_FILE = "tests/configs/env.js";
});
describe("Without 'dev' commandline argument", function() {
before(function() {
describe("Without 'dev' commandline argument", function () {
before(function () {
return helpers
.startApplication({
args: ["js/electron.js"]
})
.then(function(startedApp) {
.then(function (startedApp) {
app = startedApp;
});
});
after(function() {
after(function () {
return helpers.stopApplication(app);
});
it("should not open dev console when absent", function() {
it("should not open dev console when absent", function () {
return expect(app.browserWindow.isDevToolsOpened()).to.eventually.equal(false);
});
});
describe("With 'dev' commandline argument", function() {
before(function() {
describe("With 'dev' commandline argument", function () {
before(function () {
return helpers
.startApplication({
args: ["js/electron.js", "dev"]
})
.then(function(startedApp) {
.then(function (startedApp) {
app = startedApp;
});
});
after(function() {
after(function () {
return helpers.stopApplication(app);
});
it("should open dev console when provided", function() {
it("should open dev console when provided", function () {
return expect(app.browserWindow.isDevToolsOpened()).to.eventually.equal(true);
});
});