From 9f72bf7745fa9f5e26a63a85d2dfccf3e3a8b29f Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 11 Mar 2022 10:55:29 -0800 Subject: [PATCH] Prettier code cleanup for .js files See #182 --- src-ui/e2e/protractor.conf.js | 30 +++++++++++++++--------------- src-ui/karma.conf.js | 12 ++++++------ 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src-ui/e2e/protractor.conf.js b/src-ui/e2e/protractor.conf.js index 09a96840f..fc1b55c65 100644 --- a/src-ui/e2e/protractor.conf.js +++ b/src-ui/e2e/protractor.conf.js @@ -2,18 +2,16 @@ // Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/lib/config.ts -const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter'); +const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter') /** * @type { import("protractor").Config } */ exports.config = { allScriptsTimeout: 11000, - specs: [ - './src/**/*.e2e-spec.ts' - ], + specs: ['./src/**/*.e2e-spec.ts'], capabilities: { - browserName: 'chrome' + browserName: 'chrome', }, directConnect: true, baseUrl: 'http://localhost:4200/', @@ -21,16 +19,18 @@ exports.config = { jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, - print: function() {} + print: function () {}, }, onPrepare() { require('ts-node').register({ - project: require('path').join(__dirname, './tsconfig.json') - }); - jasmine.getEnv().addReporter(new SpecReporter({ - spec: { - displayStacktrace: StacktraceOption.PRETTY - } - })); - } -}; + project: require('path').join(__dirname, './tsconfig.json'), + }) + jasmine.getEnv().addReporter( + new SpecReporter({ + spec: { + displayStacktrace: StacktraceOption.PRETTY, + }, + }) + ) + }, +} diff --git a/src-ui/karma.conf.js b/src-ui/karma.conf.js index 9fb9e914b..7a0b7490c 100644 --- a/src-ui/karma.conf.js +++ b/src-ui/karma.conf.js @@ -10,15 +10,15 @@ module.exports = function (config) { require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage-istanbul-reporter'), - require('@angular-devkit/build-angular/plugins/karma') + require('@angular-devkit/build-angular/plugins/karma'), ], client: { - clearContext: false // leave Jasmine Spec Runner output visible in browser + clearContext: false, // leave Jasmine Spec Runner output visible in browser }, coverageIstanbulReporter: { dir: require('path').join(__dirname, './coverage/paperless-ui'), reports: ['html', 'lcovonly', 'text-summary'], - fixWebpackSourcePaths: true + fixWebpackSourcePaths: true, }, reporters: ['progress', 'kjhtml'], port: 9876, @@ -27,6 +27,6 @@ module.exports = function (config) { autoWatch: true, browsers: ['Chrome'], singleRun: false, - restartOnFileChange: true - }); -}; + restartOnFileChange: true, + }) +}