diff --git a/frontend/app/abilities/report.js b/frontend/app/abilities/report.js index e1d6b8856..8afb3467b 100644 --- a/frontend/app/abilities/report.js +++ b/frontend/app/abilities/report.js @@ -28,7 +28,7 @@ export default class ReportAbility extends Ability { return ((await this.model?.taskAssignees) ?? []) .concat( (await this.model?.projectAssignees) ?? [], - (await this.model?.customerAssignees) ?? [] + (await this.model?.customerAssignees) ?? [], ) .filter((a) => a?.user) .map((a) => a.user.get("id")) diff --git a/frontend/app/analysis/edit/controller.js b/frontend/app/analysis/edit/controller.js index 5b6084fd4..6954cac59 100644 --- a/frontend/app/analysis/edit/controller.js +++ b/frontend/app/analysis/edit/controller.js @@ -103,7 +103,7 @@ export default class AnalysisEditController extends Controller { })}`, { method: "GET", - } + }, ); yield this.store.pushPayload("report-intersection", res); @@ -272,9 +272,9 @@ export default class AnalysisEditController extends Controller { underscoreQueryParams( serializeQueryParams( filterQueryParams(params, "editable"), - queryParamsState(this) - ) - ) + queryParamsState(this), + ), + ), ); } } diff --git a/frontend/app/analysis/index/controller.js b/frontend/app/analysis/index/controller.js index 309c0bb75..e03f28920 100644 --- a/frontend/app/analysis/index/controller.js +++ b/frontend/app/analysis/index/controller.js @@ -199,7 +199,7 @@ export default class AnalysisController extends QPController { data = enqueueTask(async () => { const params = underscoreQueryParams( - serializeQueryParams(this.allQueryParams, queryParamsState(this)) + serializeQueryParams(this.allQueryParams, queryParamsState(this)), ); if (this._canLoadMore) { @@ -223,24 +223,24 @@ export default class AnalysisController extends QPController { "taskAssignees", taskAssignees.filter( (taskAssignee) => - report.get("task.id") === taskAssignee.get("task.id") - ) + report.get("task.id") === taskAssignee.get("task.id"), + ), ); report.set( "projectAssignees", projectAssignees.filter( (projectAssignee) => report.get("task.project.id") === - projectAssignee.get("project.id") - ) + projectAssignee.get("project.id"), + ), ); report.set( "customerAssignees", customerAssignees.filter( (customerAssignee) => report.get("task.project.customer.id") === - customerAssignee.get("customer.id") - ) + customerAssignee.get("customer.id"), + ), ); return report; }); @@ -316,10 +316,10 @@ export default class AnalysisController extends QPController { ...params, ...serializeQueryParams( this.allQueryParams, - queryParamsState(this) + queryParamsState(this), ), - }) - ) + }), + ), ); const res = yield fetch(`${url}?${queryString}`, { @@ -346,7 +346,7 @@ export default class AnalysisController extends QPController { } catch (e) { /* istanbul ignore next */ this.notify.error( - "Error while downloading, try again or try reducing results" + "Error while downloading, try again or try reducing results", ); } } diff --git a/frontend/app/components/attendance-slider/component.js b/frontend/app/components/attendance-slider/component.js index 9f4017dc0..1ded859cd 100644 --- a/frontend/app/components/attendance-slider/component.js +++ b/frontend/app/components/attendance-slider/component.js @@ -131,7 +131,7 @@ export default class AttendanceSlider extends Component { attendance.set( "from", - moment(attendance.get("from")).hour(0).minute(fromMin) + moment(attendance.get("from")).hour(0).minute(fromMin), ); attendance.set("to", moment(attendance.get("to")).hour(0).minute(toMin)); diff --git a/frontend/app/components/date-buttons/component.js b/frontend/app/components/date-buttons/component.js index 97e1cce6c..e4de4b61c 100644 --- a/frontend/app/components/date-buttons/component.js +++ b/frontend/app/components/date-buttons/component.js @@ -33,13 +33,13 @@ export default class DateButtonsComponent extends Component { break; case "last month": this.args.onUpdateFromDate( - moment().subtract(1, "month").startOf("month") + moment().subtract(1, "month").startOf("month"), ); this.args.onUpdateToDate(moment().subtract(1, "month").endOf("month")); break; case "last year": this.args.onUpdateFromDate( - moment().subtract(1, "year").startOf("year") + moment().subtract(1, "year").startOf("year"), ); this.args.onUpdateToDate(moment().subtract(1, "year").endOf("year")); break; diff --git a/frontend/app/components/optimized-power-select/options/component.js b/frontend/app/components/optimized-power-select/options/component.js index bb96fed34..b42f3a65f 100644 --- a/frontend/app/components/optimized-power-select/options/component.js +++ b/frontend/app/components/optimized-power-select/options/component.js @@ -25,7 +25,7 @@ export default class OptimizedPowerSelectOptionsComponent extends Component { "actions", this.args.select.actions, "scrollTo", - this.args.select.highlighted + this.args.select.highlighted, ); } diff --git a/frontend/app/components/report-row/component.js b/frontend/app/components/report-row/component.js index 0b7e1b50d..d23a5563a 100644 --- a/frontend/app/components/report-row/component.js +++ b/frontend/app/components/report-row/component.js @@ -11,7 +11,7 @@ export default class ReportRowComponent extends Component { return editable ? "" : `This entry was already verified by ${this.args.report.get( - "verifiedBy.fullName" + "verifiedBy.fullName", )} and therefore not editable anymore`; } diff --git a/frontend/app/components/statistic-list/component.js b/frontend/app/components/statistic-list/component.js index 042672ab2..a0bdf425c 100644 --- a/frontend/app/components/statistic-list/component.js +++ b/frontend/app/components/statistic-list/component.js @@ -76,16 +76,16 @@ export default class StatisticList extends Component { } const maxEstimated = moment.duration( - Math.max(0, ...this.value.map((v) => v.estimatedTime).filter(Boolean)) + Math.max(0, ...this.value.map((v) => v.estimatedTime).filter(Boolean)), ); const maxDurationWithRemainingEffort = moment.duration( Math.max( ...this.value.map((task) => moment .duration(task.duration) - .add(moment.duration(task.mostRecentRemainingEffort)) - ) - ) + .add(moment.duration(task.mostRecentRemainingEffort)), + ), + ), ); return Math.max(maxEstimated, maxDurationWithRemainingEffort); } diff --git a/frontend/app/components/sy-calendar/component.js b/frontend/app/components/sy-calendar/component.js index 85e2fb463..22c9adb2c 100644 --- a/frontend/app/components/sy-calendar/component.js +++ b/frontend/app/components/sy-calendar/component.js @@ -10,7 +10,7 @@ export default class SyCalendar extends Component { months = moment.months(); years = [...new Array(40).keys()].map( - (i) => `${CURRENT_YEAR + YEARS_IN_FUTURE - i}` + (i) => `${CURRENT_YEAR + YEARS_IN_FUTURE - i}`, ); @action diff --git a/frontend/app/components/sy-datepicker/component.js b/frontend/app/components/sy-datepicker/component.js index ab5d0fa32..d33c2a6ea 100644 --- a/frontend/app/components/sy-datepicker/component.js +++ b/frontend/app/components/sy-datepicker/component.js @@ -40,7 +40,7 @@ export default class SyDatepicker extends Component { @action handleBlur(dd, e) { const container = document.getElementById( - `ember-basic-dropdown-content-${dd.uniqueId}` + `ember-basic-dropdown-content-${dd.uniqueId}`, ); if (!container || !container.contains(e.relatedTarget)) { diff --git a/frontend/app/components/task-selection/component.js b/frontend/app/components/task-selection/component.js index 81bef88d3..fb2ed6587 100644 --- a/frontend/app/components/task-selection/component.js +++ b/frontend/app/components/task-selection/component.js @@ -64,7 +64,7 @@ export default class TaskSelectionComponent extends Component { // we track "_activity" here since we can not track the public getters directly this.tracking.addObserver( "_activity", - this.handleTrackingActiveActivityChanged.perform + this.handleTrackingActiveActivityChanged.perform, ); } } @@ -73,7 +73,7 @@ export default class TaskSelectionComponent extends Component { if (this.args.liveTracking) { this.tracking.removeObserver( "_activity", - this.handleTrackingActiveActivityChanged.perform + this.handleTrackingActiveActivityChanged.perform, ); } super.willDestroy(...args); @@ -245,7 +245,7 @@ export default class TaskSelectionComponent extends Component { _customersAndRecentTasks = trackedTask( this, this.customersAndRecentTasksTask, - () => [this.history, this.tracking.recentTasks, this.archived] + () => [this.history, this.tracking.recentTasks, this.archived], ); get customersAndRecentTasks() { diff --git a/frontend/app/components/weekly-overview-day/component.js b/frontend/app/components/weekly-overview-day/component.js index f0b0bcc99..1443de452 100644 --- a/frontend/app/components/weekly-overview-day/component.js +++ b/frontend/app/components/weekly-overview-day/component.js @@ -24,7 +24,7 @@ export default class WeeklyOverviewDay extends Component { get style() { const height = Math.min( (this.args.worktime.asHours() / this.max) * 100, - 100 + 100, ); return { height: `${height}%` }; } diff --git a/frontend/app/components/worktime-balance-chart/component.js b/frontend/app/components/worktime-balance-chart/component.js index 5c61b941b..76a5f36c8 100644 --- a/frontend/app/components/worktime-balance-chart/component.js +++ b/frontend/app/components/worktime-balance-chart/component.js @@ -17,7 +17,7 @@ export default class WorktimeBalanceChart extends Component { datasets: [ { data: this.args.worktimeBalances.map(({ balance }) => - Number.parseFloat(balance.asHours().toFixed(2)) + Number.parseFloat(balance.asHours().toFixed(2)), ), }, ], diff --git a/frontend/app/controllers/qpcontroller.js b/frontend/app/controllers/qpcontroller.js index d9d3ea99e..eb25522a0 100644 --- a/frontend/app/controllers/qpcontroller.js +++ b/frontend/app/controllers/qpcontroller.js @@ -32,7 +32,7 @@ export default class ControllersQPControllerController extends Controller { value: this[key], enumerable: true, }), - {} + {}, ); } } diff --git a/frontend/app/index/activities/controller.js b/frontend/app/index/activities/controller.js index 900dbfd22..fc8020ef1 100644 --- a/frontend/app/index/activities/controller.js +++ b/frontend/app/index/activities/controller.js @@ -177,7 +177,7 @@ export default class ActivitiesIndexController extends Controller { (a) => a.get("task.id") && !(a.get("active") && !a.get("from").isSame(moment(), "day")) && - !a.get("transferred") + !a.get("transferred"), ) .reduce(async (reducer, activity) => { if (activity.get("active")) { diff --git a/frontend/app/index/activities/edit/route.js b/frontend/app/index/activities/edit/route.js index 363670943..080a49a7e 100644 --- a/frontend/app/index/activities/edit/route.js +++ b/frontend/app/index/activities/edit/route.js @@ -52,7 +52,7 @@ export default class IndexActivityEditController extends Route { const changeset = new Changeset( model, lookupValidator(ActivityValidator), - ActivityValidator + ActivityValidator, ); changeset.validate(); diff --git a/frontend/app/index/controller.js b/frontend/app/index/controller.js index 83ddb0314..cb80e6988 100644 --- a/frontend/app/index/controller.js +++ b/frontend/app/index/controller.js @@ -253,7 +253,7 @@ export default class IndexController extends Controller { return [...reportDurations, ...absenceDurations].reduce( (val, dur) => val.add(dur), - moment.duration() + moment.duration(), ); } @@ -329,14 +329,14 @@ export default class IndexController extends Controller { (report) => report.get("user.id") === this.currentUser.user.get("id") && !report.get("isDeleted") && - !report.get("isNew") + !report.get("isNew"), ); const allAbsences = this.allAbsences.filter( (absence) => absence.get("user.id") === this.currentUser.user.get("id") && !absence.get("isDeleted") && - !absence.get("isNew") + !absence.get("isNew"), ); const allHolidays = this.store.peekAll("public-holiday"); @@ -360,11 +360,11 @@ export default class IndexController extends Controller { return obj; }, - {} + {}, ); return Array.from({ length: 31 }, (value, index) => - moment(this.date).add(index - 20, "days") + moment(this.date).add(index - 20, "days"), ).map((d) => { const { reports = [], @@ -461,7 +461,7 @@ export default class IndexController extends Controller { */ get disabledDatesForEdit() { return this.disabledDates.filter( - (date) => !date.isSame(this.absence.date, "day") + (date) => !date.isSame(this.absence.date, "day"), ); } diff --git a/frontend/app/index/reports/controller.js b/frontend/app/index/reports/controller.js index 1a3ecca8b..a57dbc04c 100644 --- a/frontend/app/index/reports/controller.js +++ b/frontend/app/index/reports/controller.js @@ -166,7 +166,7 @@ export default class IndexReportController extends Controller { if (reports.length < this.reports.length - 1) { /* istanbul ignore next */ this.notify.warning( - "Reports that got verified already can not get transferred." + "Reports that got verified already can not get transferred.", ); } @@ -174,7 +174,7 @@ export default class IndexReportController extends Controller { reports.map(async (report) => { report.set("date", date); return await report.save(); - }) + }), ); this.showReschedule = false; this.router.transitionTo({ diff --git a/frontend/app/index/reports/route.js b/frontend/app/index/reports/route.js index be9ec0f41..c3903d197 100644 --- a/frontend/app/index/reports/route.js +++ b/frontend/app/index/reports/route.js @@ -51,7 +51,7 @@ export default class IndexReportsRoute extends Route { controller.notBillable = null; this.notify.success( - "Temporary report was created. Please amend it and save it or delete it." + "Temporary report was created. Please amend it and save it or delete it.", ); } catch { /* istanbul ignore next */ diff --git a/frontend/app/models/activity.js b/frontend/app/models/activity.js index 40c64e3a3..d59915d10 100644 --- a/frontend/app/models/activity.js +++ b/frontend/app/models/activity.js @@ -104,7 +104,7 @@ export default class Activity extends Model { review: this.review, notBillable: this.notBillable, fromTime: moment({ h: 0, m: 0, s: 0 }), - }) + }), ); } @@ -121,18 +121,18 @@ export default class Activity extends Model { m: 59, s: 59, }), - moment() - ) + moment(), + ), ); await activity.save(); - }) + }), ); if (moment().diff(this.date, "days") > 1) { this.notify.info( "The activity overlapped multiple days, which is not possible. The activity was stopped at midnight of the day it was started.", - { closeAfter: 5000 } + { closeAfter: 5000 }, ); } } diff --git a/frontend/app/projects/controller.js b/frontend/app/projects/controller.js index aa4b2187a..c9c375fa0 100644 --- a/frontend/app/projects/controller.js +++ b/frontend/app/projects/controller.js @@ -37,7 +37,7 @@ export default class ProjectsController extends Controller { get customers() { return uniqBy( this.projects?.map((p) => p?.get("customer")).filter(Boolean) ?? [], - (c) => c.get("id") + (c) => c.get("id"), ).toSorted((c) => c.get("name")); } @@ -68,7 +68,7 @@ export default class ProjectsController extends Controller { *filterProjects() { return yield this.projects.filter( (project) => - project.get("customer.id") === this.selectedCustomer.get("id") + project.get("customer.id") === this.selectedCustomer.get("id"), ); } @@ -150,7 +150,7 @@ export default class ProjectsController extends Controller { ) { changeset.set( "mostRecentRemainingEffort", - changeset.get("estimatedTime") + changeset.get("estimatedTime"), ); } } diff --git a/frontend/app/services/current-user.js b/frontend/app/services/current-user.js index f4db36698..d51197061 100644 --- a/frontend/app/services/current-user.js +++ b/frontend/app/services/current-user.js @@ -17,7 +17,7 @@ export default class CurrentUserService extends Service { })}`, { method: "GET", - } + }, ); await this.store.pushPayload("user", user); diff --git a/frontend/app/services/fetch.js b/frontend/app/services/fetch.js index 8b43b16ae..457479990 100644 --- a/frontend/app/services/fetch.js +++ b/frontend/app/services/fetch.js @@ -75,7 +75,7 @@ export default class FetchService extends Service { response, body, error: new Error( - `Fetch request to URL ${response.url} returned ${response.status} ${response.statusText}:\n\n${body}` + `Fetch request to URL ${response.url} returned ${response.status} ${response.statusText}:\n\n${body}`, ), }; } diff --git a/frontend/app/services/metadata-fetcher.js b/frontend/app/services/metadata-fetcher.js index 44e0e583a..e337ac86c 100644 --- a/frontend/app/services/metadata-fetcher.js +++ b/frontend/app/services/metadata-fetcher.js @@ -77,11 +77,11 @@ export default class MetadataFetcherService extends Service { [key]: value ? transform.deserialize(value) : defaultValue, }; }, - {} + {}, ); const attributesValues = Object.keys( - ATTRIBUTE_MODELS[camelize(type)] + ATTRIBUTE_MODELS[camelize(type)], ).reduce((parsedAttribute, key) => { const { defaultValue, transform } = ATTRIBUTE_MODELS[camelize(type)][key]; const value = attributes[dasherize(key)]; diff --git a/frontend/app/services/rejected-reports.js b/frontend/app/services/rejected-reports.js index 7180b22ce..b8bd6bbc8 100644 --- a/frontend/app/services/rejected-reports.js +++ b/frontend/app/services/rejected-reports.js @@ -29,7 +29,7 @@ export default class RejectedReportsService extends Service { } else { this.intervalId = setInterval( this.pollReports.bind(this), - INTERVAL_DELAY + INTERVAL_DELAY, ); } } diff --git a/frontend/app/services/tour.js b/frontend/app/services/tour.js index 49c616fdb..965d11419 100644 --- a/frontend/app/services/tour.js +++ b/frontend/app/services/tour.js @@ -157,7 +157,7 @@ export default class TourService extends Tour { } else { try { await this.router.transitionTo( - this.autostartTour.undoneTours.shift() ?? "index" + this.autostartTour.undoneTours.shift() ?? "index", ); } catch { /* eslint:disable:no-empty */ diff --git a/frontend/app/services/tracking.js b/frontend/app/services/tracking.js index ac43524d1..a31994931 100644 --- a/frontend/app/services/tracking.js +++ b/frontend/app/services/tracking.js @@ -113,7 +113,7 @@ export default class TrackingService extends Service { scheduleOnce( "afterRender", this, - this.scheduleDocumentTitle.bind(this, title) + this.scheduleDocumentTitle.bind(this, title), ); } diff --git a/frontend/app/services/unverified-reports.js b/frontend/app/services/unverified-reports.js index 579a8c754..e2fb97a16 100644 --- a/frontend/app/services/unverified-reports.js +++ b/frontend/app/services/unverified-reports.js @@ -40,7 +40,7 @@ export default class UnverifiedReportsService extends Service { if (macroCondition(!isTesting())) { this.intervalId = setInterval( this.pollReports.bind(this), - INTERVAL_DELAY + INTERVAL_DELAY, ); } } diff --git a/frontend/app/statistics/controller.js b/frontend/app/statistics/controller.js index a4780e7c4..3877eb4d2 100644 --- a/frontend/app/statistics/controller.js +++ b/frontend/app/statistics/controller.js @@ -122,7 +122,7 @@ export default class StatisticsController extends QPController { get missingParams() { return this.requiredParams.filter( - (param) => !queryParamsState(this)[param].changed + (param) => !queryParamsState(this)[param].changed, ); } @@ -169,7 +169,7 @@ export default class StatisticsController extends QPController { const type = this.type; let params = underscoreQueryParams( - serializeQueryParams(this.allQueryParams, queryParamsState(this)) + serializeQueryParams(this.allQueryParams, queryParamsState(this)), ); params = Object.keys(params).reduce((obj, key) => { diff --git a/frontend/app/styles/adcssy.scss b/frontend/app/styles/adcssy.scss index e60a547ee..4bc8a4d39 100644 --- a/frontend/app/styles/adcssy.scss +++ b/frontend/app/styles/adcssy.scss @@ -79,7 +79,8 @@ font-family: TheSansLT; font-weight: 300; font-style: normal; - src: url("../fonts/TheSans_LT_300_.eot") format("embedded-opentype"), + src: + url("../fonts/TheSans_LT_300_.eot") format("embedded-opentype"), url("../fonts/TheSans_LT_300_.svg") format("svg"), url("../fonts/TheSans_LT_300_.woff") format("woff"); } @@ -88,7 +89,8 @@ font-family: TheSansLT; font-weight: 300; font-style: italic; - src: url("../fonts/TheSans_LT_300i.eot") format("embedded-opentype"), + src: + url("../fonts/TheSans_LT_300i.eot") format("embedded-opentype"), url("../fonts/TheSans_LT_300i.svg") format("svg"), url("../fonts/TheSans_LT_300i.woff") format("woff"); } @@ -97,7 +99,8 @@ font-family: TheSansLT; font-weight: 500; font-style: normal; - src: url("../fonts/TheSans_LT_500_.eot") format("embedded-opentype"), + src: + url("../fonts/TheSans_LT_500_.eot") format("embedded-opentype"), url("../fonts/TheSans_LT_500_.svg") format("svg"), url("../fonts/TheSans_LT_500_.woff") format("woff"); } @@ -106,7 +109,8 @@ font-family: TheSansLT; font-weight: 500; font-style: italic; - src: url("../fonts/TheSans_LT_500i.eot") format("embedded-opentype"), + src: + url("../fonts/TheSans_LT_500i.eot") format("embedded-opentype"), url("../fonts/TheSans_LT_500i.svg") format("svg"), url("../fonts/TheSans_LT_500i.woff") format("woff"); } @@ -270,7 +274,9 @@ a { } a:hover { - transition: background 0.1s ease 0, color 0.1s ease 0; + transition: + background 0.1s ease 0, + color 0.1s ease 0; } a:active, @@ -1988,7 +1994,11 @@ code { background-position: 0 85%; background-repeat: repeat-x; background-size: 100% 1px; - text-shadow: 0.1rem 0 #fff, 0.15rem 0 #fff, -0.1rem 0 #fff, -0.15rem 0 #fff; + text-shadow: + 0.1rem 0 #fff, + 0.15rem 0 #fff, + -0.1rem 0 #fff, + -0.15rem 0 #fff; } .nav-toggle { @@ -2089,10 +2099,18 @@ code { flex-basis: 55px; -ms-flex-negative: 0; flex-shrink: 0; - transition: -webkit-flex-basis 0.2s, -webkit-transform 0.2s; - transition: flex-basis 0.2s, transform 0.2s; - transition: flex-basis 0.2s, transform 0.2s, -webkit-flex-basis 0.2s, - -ms-flex-preferred-size 0.2s, -webkit-transform 0.2s; + transition: + -webkit-flex-basis 0.2s, + -webkit-transform 0.2s; + transition: + flex-basis 0.2s, + transform 0.2s; + transition: + flex-basis 0.2s, + transform 0.2s, + -webkit-flex-basis 0.2s, + -ms-flex-preferred-size 0.2s, + -webkit-transform 0.2s; height: 100vh; } @@ -2115,7 +2133,8 @@ code { -ms-flex-positive: 1; flex-grow: 1; overflow-y: auto; - background: linear-gradient(#f6f6f6 15px, hsl(0deg 0% 96% / 0%)) 0 0/100% 50px, + background: + linear-gradient(#f6f6f6 15px, hsl(0deg 0% 96% / 0%)) 0 0/100% 50px, radial-gradient(at top, rgb(0 0 0 / 25%), transparent 70%) 0 0/100% 15px, linear-gradient(0deg, #f6f6f6 15px, hsl(0deg 0% 96% / 0%)) bottom/100% 50px, radial-gradient(at bottom, rgb(0 0 0 / 25%), transparent 70%) bottom/100% @@ -2148,7 +2167,10 @@ code { .page-main-overlay { background-color: #000; - transition: left 0.2s, opacity 0.2s, position 0.2s; + transition: + left 0.2s, + opacity 0.2s, + position 0.2s; opacity: 0; left: 0; } @@ -2196,7 +2218,9 @@ code { height: 0; overflow: hidden; padding: 0; - transition: height 0.2s, padding 0.2s; + transition: + height 0.2s, + padding 0.2s; } .nav-side-header-title { @@ -2244,7 +2268,9 @@ code { .nav-side-list a { color: #265bab; - transition: color 0.2s, background-color 0.2s; + transition: + color 0.2s, + background-color 0.2s; } .nav-side-list a.active, @@ -2452,8 +2478,8 @@ code { } .nav-side--sub .nav-side-body { - background: linear-gradient(#fbfbfb 15px, hsl(0deg 0% 98% / 0%)) 0 0/100% - 50px, + background: + linear-gradient(#fbfbfb 15px, hsl(0deg 0% 98% / 0%)) 0 0/100% 50px, radial-gradient(at top, rgb(0 0 0 / 25%), transparent 70%) 0 0/100% 15px, linear-gradient(0deg, #fbfbfb 15px, hsl(0deg 0% 98% / 0%)) bottom/100% 50px, @@ -2589,7 +2615,9 @@ code { .nav-top-list a { color: #265bab; - transition: color 0.2s, background-color 0.2s; + transition: + color 0.2s, + background-color 0.2s; } .nav-top-list--right { @@ -2811,7 +2839,9 @@ code { user-select: none; box-shadow: 0 1px 0 hsl(0deg 0% 100% / 15%) inset; box-shadow: inset 0 1px 0 hsl(0deg 0% 100% / 15%); - transition: color 0.2s ease 0s, background 0.2s ease 0s, + transition: + color 0.2s ease 0s, + background 0.2s ease 0s, border-color 0.2s ease 0s; } @@ -2858,9 +2888,11 @@ code { .btn.active:not(.no-active-class), .btn:active { - box-shadow: 0 1px 10px rgb(0 0 0 / 20%) inset, + box-shadow: + 0 1px 10px rgb(0 0 0 / 20%) inset, 0 -1px 0 hsl(0deg 0% 100% / 20%) inset; - box-shadow: inset 0 1px 10px rgb(0 0 0 / 20%), + box-shadow: + inset 0 1px 10px rgb(0 0 0 / 20%), inset 0 -1px 0 hsl(0deg 0% 100% / 20%); padding: 0.75rem 1.25rem calc(0.75rem + 1px); border-top-width: 2px; @@ -3047,9 +3079,11 @@ fieldset[disabled] .btn { .btn-group--vertical > .btn:active, .btn-group--vertical > .btn:last-child.active:not(.no-active-class), .btn-group--vertical > .btn:last-child:active { - box-shadow: 0 1px 10px rgb(0 0 0 / 20%) inset, + box-shadow: + 0 1px 10px rgb(0 0 0 / 20%) inset, 0 -1px 0 hsl(0deg 0% 100% / 20%) inset; - box-shadow: inset 0 1px 10px rgb(0 0 0 / 20%), + box-shadow: + inset 0 1px 10px rgb(0 0 0 / 20%), inset 0 -1px 0 hsl(0deg 0% 100% / 20%); } @@ -3131,9 +3165,16 @@ fieldset[disabled] .btn { border-radius: 4px; box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset; box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%); - transition: border-color 0.15s, -webkit-box-shadow 0.15s; - transition: border-color 0.15s, box-shadow 0.15s; - transition: border-color 0.15s, box-shadow 0.15s, -webkit-box-shadow 0.15s; + transition: + border-color 0.15s, + -webkit-box-shadow 0.15s; + transition: + border-color 0.15s, + box-shadow 0.15s; + transition: + border-color 0.15s, + box-shadow 0.15s, + -webkit-box-shadow 0.15s; } @media only screen and (width >=768px) { @@ -3177,33 +3218,53 @@ select.form-control:not([multiple]) { .form-control:focus { border-color: #7ca5e2; outline: 0; - box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset, 0 0 8px rgb(91 142 219 / 60%); - box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%), 0 0 8px rgb(91 142 219 / 60%); + box-shadow: + 0 1px 1px rgb(0 0 0 / 7.5%) inset, + 0 0 8px rgb(91 142 219 / 60%); + box-shadow: + inset 0 1px 1px rgb(0 0 0 / 7.5%), + 0 0 8px rgb(91 142 219 / 60%); } .form-control.success { border-color: #7dc67d; - box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset, 0 0 8px rgb(92 184 92 / 60%); - box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%), 0 0 8px rgb(92 184 92 / 60%); + box-shadow: + 0 1px 1px rgb(0 0 0 / 7.5%) inset, + 0 0 8px rgb(92 184 92 / 60%); + box-shadow: + inset 0 1px 1px rgb(0 0 0 / 7.5%), + 0 0 8px rgb(92 184 92 / 60%); } .form-control.info { border-color: #7ccde5; - box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset, 0 0 8px rgb(91 192 222 / 60%); - box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%), 0 0 8px rgb(91 192 222 / 60%); + box-shadow: + 0 1px 1px rgb(0 0 0 / 7.5%) inset, + 0 0 8px rgb(91 192 222 / 60%); + box-shadow: + inset 0 1px 1px rgb(0 0 0 / 7.5%), + 0 0 8px rgb(91 192 222 / 60%); } .form-control.warning { border-color: #f3bd71; - box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset, 0 0 8px rgb(240 173 78 / 60%); - box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%), 0 0 8px rgb(240 173 78 / 60%); + box-shadow: + 0 1px 1px rgb(0 0 0 / 7.5%) inset, + 0 0 8px rgb(240 173 78 / 60%); + box-shadow: + inset 0 1px 1px rgb(0 0 0 / 7.5%), + 0 0 8px rgb(240 173 78 / 60%); } .form-control.invalid, .form-control:invalid { border-color: #e17572; - box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset, 0 0 8px rgb(217 83 79 / 60%); - box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%), 0 0 8px rgb(217 83 79 / 60%); + box-shadow: + 0 1px 1px rgb(0 0 0 / 7.5%) inset, + 0 0 8px rgb(217 83 79 / 60%); + box-shadow: + inset 0 1px 1px rgb(0 0 0 / 7.5%), + 0 0 8px rgb(217 83 79 / 60%); } .form-control[disabled], @@ -3299,9 +3360,16 @@ fieldset[disabled] .form-control { border-radius: 4px; box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset; box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%); - transition: border-color 0.15s, -webkit-box-shadow 0.15s; - transition: border-color 0.15s, box-shadow 0.15s; - transition: border-color 0.15s, box-shadow 0.15s, -webkit-box-shadow 0.15s; + transition: + border-color 0.15s, + -webkit-box-shadow 0.15s; + transition: + border-color 0.15s, + box-shadow 0.15s; + transition: + border-color 0.15s, + box-shadow 0.15s, + -webkit-box-shadow 0.15s; } .checkbox > input[type="radio"]:checked + label::before, @@ -3393,8 +3461,12 @@ fieldset[disabled] .form-control { .radio > input[type="radio"]:not(:checked):focus + label::before { border-color: #7ca5e2; outline: 0; - box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset, 0 0 8px rgb(91 142 219 / 60%); - box-shadow: inset 0 1px 1px rgb(0 0 0 / 7.5%), 0 0 8px rgb(91 142 219 / 60%); + box-shadow: + 0 1px 1px rgb(0 0 0 / 7.5%) inset, + 0 0 8px rgb(91 142 219 / 60%); + box-shadow: + inset 0 1px 1px rgb(0 0 0 / 7.5%), + 0 0 8px rgb(91 142 219 / 60%); } .checkbox > input[type="checkbox"]:checked + label:hover::before, diff --git a/frontend/app/styles/app.scss b/frontend/app/styles/app.scss index bd7bc673e..a7d78bd38 100644 --- a/frontend/app/styles/app.scss +++ b/frontend/app/styles/app.scss @@ -194,7 +194,8 @@ strong { &:focus, &:focus-within { border-color: lighten($color-danger, 20%); - box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset, + box-shadow: + 0 1px 1px rgb(0 0 0 / 7.5%) inset, 0 0 8px opacify($color-danger, 0.6); } } @@ -203,7 +204,8 @@ strong { .form-control { &:focus-within { border-color: lighten($color-primary, 20%); - box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset, + box-shadow: + 0 1px 1px rgb(0 0 0 / 7.5%) inset, 0 0 8px opacify($color-primary, 0.6); } diff --git a/frontend/app/styles/components/sy-calendar.scss b/frontend/app/styles/components/sy-calendar.scss index 21585cc5a..334507894 100644 --- a/frontend/app/styles/components/sy-calendar.scss +++ b/frontend/app/styles/components/sy-calendar.scss @@ -19,7 +19,9 @@ .ember-power-calendar-day { cursor: pointer; - transition: background-color 300ms ease, color 300ms ease; + transition: + background-color 300ms ease, + color 300ms ease; &--focused { box-shadow: inset 0 -2px 0 0 $color-primary; diff --git a/frontend/app/styles/ember-power-select-custom.scss b/frontend/app/styles/ember-power-select-custom.scss index 6f8d72b1a..c9c435eb7 100644 --- a/frontend/app/styles/ember-power-select-custom.scss +++ b/frontend/app/styles/ember-power-select-custom.scss @@ -88,13 +88,16 @@ border: 1px solid rgb(204 204 204); border-radius: $input-border-radius; box-shadow: $input-box-shadow; - transition: border-color 0.15s, box-shadow 0.15s; + transition: + border-color 0.15s, + box-shadow 0.15s; padding-right: 2rem; &:focus { border-color: lighten($color-primary, 20%); outline: 0; - box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset, + box-shadow: + 0 1px 1px rgb(0 0 0 / 7.5%) inset, 0 0 8px opacify($color-primary, 0.6); } diff --git a/frontend/app/styles/filter-sidebar.scss b/frontend/app/styles/filter-sidebar.scss index cce15776b..689d5b78e 100644 --- a/frontend/app/styles/filter-sidebar.scss +++ b/frontend/app/styles/filter-sidebar.scss @@ -104,7 +104,9 @@ right: auto; opacity: 0; transform: translateX(3.5rem); - transition: transform 300ms ease, opacity 300ms ease; + transition: + transform 300ms ease, + opacity 300ms ease; } .filter-sidebar-toggle:hover > .filter-sidebar-toggle-background { diff --git a/frontend/app/styles/tour.scss b/frontend/app/styles/tour.scss index 2793e802b..d7682caa3 100644 --- a/frontend/app/styles/tour.scss +++ b/frontend/app/styles/tour.scss @@ -2,7 +2,8 @@ div.hopscotch-bubble { z-index: 99; // The dropdowns have 100 and we don't want to hide them border: 1px solid $color-border; border-color: lighten($color-primary, 20%); - box-shadow: 0 1px 1px rgb(0 0 0 / 7.5%) inset, + box-shadow: + 0 1px 1px rgb(0 0 0 / 7.5%) inset, 0 0 8px opacify($color-primary, 0.6); .hopscotch-bubble-number { diff --git a/frontend/app/users/edit/controller.js b/frontend/app/users/edit/controller.js index 4a57bded3..0caf263db 100644 --- a/frontend/app/users/edit/controller.js +++ b/frontend/app/users/edit/controller.js @@ -60,7 +60,7 @@ export default class UsersEditController extends Controller { }); return balance[0]; - }) + }), ); } } diff --git a/frontend/app/users/edit/credits/index/controller.js b/frontend/app/users/edit/credits/index/controller.js index 6518df7c2..0f47e4493 100644 --- a/frontend/app/users/edit/credits/index/controller.js +++ b/frontend/app/users/edit/credits/index/controller.js @@ -98,7 +98,7 @@ export default class UsersEditCredits extends Controller { if (this.abilities.can("edit absence-credit")) { yield this.router.transitionTo( "users.edit.credits.absence-credits.edit", - id + id, ); } } @@ -108,7 +108,7 @@ export default class UsersEditCredits extends Controller { if (this.abilities.can("edit overtime-credit")) { yield this.router.transitionTo( "users.edit.credits.overtime-credits.edit", - id + id, ); } } diff --git a/frontend/app/users/edit/responsibilities/controller.js b/frontend/app/users/edit/responsibilities/controller.js index 8241a2d2e..3aaf43716 100644 --- a/frontend/app/users/edit/responsibilities/controller.js +++ b/frontend/app/users/edit/responsibilities/controller.js @@ -52,7 +52,7 @@ export default class UsersEditResponsibilitiesController extends Controller { user.set("absenceBalances", absenceBalances); return user; - }) + }), ); } } diff --git a/frontend/mirage/config.js b/frontend/mirage/config.js index a17290983..29335a78d 100644 --- a/frontend/mirage/config.js +++ b/frontend/mirage/config.js @@ -18,7 +18,7 @@ const statisticEndpoint = (type) => { "total-time": formatDuration( stats.models.reduce((total, { duration }) => { return total.add(parseDjangoDuration(duration)); - }, moment.duration()) + }, moment.duration()), ), }, }; @@ -90,7 +90,7 @@ function routes() { access: `${btoa("access")}.${btoa(payload)}.${btoa("pony")}`, refresh: `${btoa("refresh")}.${btoa(payload)}.${btoa("pony")}`, }, - } + }, ); }); @@ -106,7 +106,7 @@ function routes() { return attendances.where((a) => { return a.date === date; }); - } + }, ); this.post("/attendances", function ({ attendances, users }) { return attendances.create({ @@ -126,7 +126,7 @@ function routes() { } return activities.all(); - } + }, ); this.post("/activities", function ({ activities, users }) { return activities.create({ @@ -142,7 +142,7 @@ function routes() { "/reports", function ( { reports }, - { queryParams: { "page[number]": page, "page[size]": limit } } + { queryParams: { "page[number]": page, "page[size]": limit } }, ) { let data = reports.all(); let meta = { @@ -163,7 +163,7 @@ function routes() { } return { ...this.serialize(data), meta }; - } + }, ); this.post("/reports", function ({ reports, users }) { return reports.create({ @@ -227,7 +227,7 @@ function routes() { } return publicHolidays.all(); - } + }, ); this.get("/public-holidays/:id"); @@ -244,7 +244,7 @@ function routes() { } return all; - } + }, ); this.get("/employments/:id"); @@ -315,9 +315,9 @@ function routes() { { "Content-Disposition": `attachment; filename=testytesyexport.${type}`, }, - new Blob() + new Blob(), ); - } + }, ); this.get("/reports/intersection", function ({ reportIntersections }) { diff --git a/frontend/mirage/factories/activity.js b/frontend/mirage/factories/activity.js index c91930125..ef55ea16d 100644 --- a/frontend/mirage/factories/activity.js +++ b/frontend/mirage/factories/activity.js @@ -29,8 +29,8 @@ export default Factory.extend({ activity.update({ duration: moment.duration( (activity.toTime ? moment(activity.toTime, "HH:mm:ss") : moment()).diff( - moment(activity.fromTime, "HH:mm:ss") - ) + moment(activity.fromTime, "HH:mm:ss"), + ), ), }); }, diff --git a/frontend/mirage/factories/employment.js b/frontend/mirage/factories/employment.js index bf2268877..1887a8a43 100644 --- a/frontend/mirage/factories/employment.js +++ b/frontend/mirage/factories/employment.js @@ -12,7 +12,7 @@ export default Factory.extend({ worktimePerDay() { const worktime = moment.duration( - (moment.duration({ h: 8, m: 30 }) / 100) * this.percentage + (moment.duration({ h: 8, m: 30 }) / 100) * this.percentage, ); return DjangoDurationTransform.create().serialize(worktime); diff --git a/frontend/mirage/factories/public-holiday.js b/frontend/mirage/factories/public-holiday.js index 31738a274..172eaffc0 100644 --- a/frontend/mirage/factories/public-holiday.js +++ b/frontend/mirage/factories/public-holiday.js @@ -9,7 +9,7 @@ export default Factory.extend({ date() { const random = faker.date.between( moment.startOf("year").format("YYYY-MM-DD"), - moment.endOf("year").format("YYYY-MM-DD") + moment.endOf("year").format("YYYY-MM-DD"), ); return moment(random).startOf("day"); diff --git a/frontend/mirage/helpers/duration.js b/frontend/mirage/helpers/duration.js index 3d66ac04a..276b12367 100644 --- a/frontend/mirage/helpers/duration.js +++ b/frontend/mirage/helpers/duration.js @@ -5,11 +5,11 @@ import DjangoDurationTransform from "timed/transforms/django-duration"; export function randomDuration(precision = 15, seconds = false, maxHours = 2) { const h = faker.random.number({ max: maxHours }); const m = Math.abs( - Math.ceil(faker.random.number({ min: 0, max: 60 }) / precision) * precision + Math.ceil(faker.random.number({ min: 0, max: 60 }) / precision) * precision, ); const s = Math.abs(seconds ? faker.random.number({ max: 59, min: 0 }) : 0); return DjangoDurationTransform.create().serialize( - moment.duration({ h, m, s }) + moment.duration({ h, m, s }), ); } diff --git a/frontend/tests/acceptance/analysis-edit-test.js b/frontend/tests/acceptance/analysis-edit-test.js index 3d2058343..44d39633e 100644 --- a/frontend/tests/acceptance/analysis-edit-test.js +++ b/frontend/tests/acceptance/analysis-edit-test.js @@ -75,7 +75,7 @@ module("Acceptance | analysis edit", function (hooks) { await visit("/analysis/edit"); const initialValue = this.element.querySelector( - "[data-test-comment]" + "[data-test-comment]", ).value; await fillIn("[data-test-comment] ", "test"); @@ -101,7 +101,7 @@ module("Acceptance | analysis edit", function (hooks) { .dom("[data-test-verified] label") .hasAttribute( "title", - "Please review selected reports before verifying." + "Please review selected reports before verifying.", ); }); @@ -128,7 +128,7 @@ module("Acceptance | analysis edit", function (hooks) { .dom("[data-test-verified] label") .hasAttribute( "title", - "Please select yourself as 'reviewer' to verify reports." + "Please select yourself as 'reviewer' to verify reports.", ); }); @@ -147,7 +147,7 @@ module("Acceptance | analysis edit", function (hooks) { .dom("[data-test-verified] label") .hasAttribute( "title", - "Please select yourself as 'reviewer' to verify reports. Please review selected reports before verifying." + "Please select yourself as 'reviewer' to verify reports. Please review selected reports before verifying.", ); }); }); diff --git a/frontend/tests/acceptance/analysis-test.js b/frontend/tests/acceptance/analysis-test.js index 996f25304..4426889bf 100644 --- a/frontend/tests/acceptance/analysis-test.js +++ b/frontend/tests/acceptance/analysis-test.js @@ -45,7 +45,7 @@ module("Acceptance | analysis", function (hooks) { await selectChoose( "[data-test-filter-customer]", ".ember-power-select-option", - 0 + 0, ); await click(".export-buttons .btn:first-child"); @@ -66,7 +66,7 @@ module("Acceptance | analysis", function (hooks) { await selectChoose( "[data-test-filter-customer]", ".ember-power-select-option", - 0 + 0, ); assert.dom(".export-buttons .btn:first-child").isDisabled(); @@ -110,7 +110,7 @@ module("Acceptance | analysis", function (hooks) { await visit( `/analysis?${Object.keys(params) .map((k) => `${k}=${params[k]}`) - .join("&")}` + .join("&")}`, ); assert @@ -130,11 +130,11 @@ module("Acceptance | analysis", function (hooks) { .exists(); assert.strictEqual( find("[data-test-filter-billing-type] select").selectedIndex, - 1 + 1, ); assert.strictEqual( find("[data-test-filter-cost-center] select").selectedIndex, - 1 + 1, ); assert.dom("[data-test-filter-from-date] input").hasValue("01.12.2016"); @@ -142,21 +142,21 @@ module("Acceptance | analysis", function (hooks) { assert.strictEqual( findAll("[data-test-filter-review] button").indexOf( - find("[data-test-filter-review] button.active") + find("[data-test-filter-review] button.active"), ), - 0 + 0, ); assert.strictEqual( findAll("[data-test-filter-not-billable] button").indexOf( - find("[data-test-filter-not-billable] button.active") + find("[data-test-filter-not-billable] button.active"), ), - 0 + 0, ); assert.strictEqual( findAll("[data-test-filter-verified] button").indexOf( - find("[data-test-filter-verified] button.active") + find("[data-test-filter-verified] button.active"), ), - 0 + 0, ); }); @@ -166,7 +166,7 @@ module("Acceptance | analysis", function (hooks) { await selectChoose( "[data-test-filter-customer]", ".ember-power-select-option", - 0 + 0, ); await click("tbody > tr:first-child"); @@ -193,7 +193,7 @@ module("Acceptance | analysis", function (hooks) { assert.strictEqual( currentURL(), - "/analysis/edit?editable=1&ordering=-date%2Cid" + "/analysis/edit?editable=1&ordering=-date%2Cid", ); }); @@ -205,7 +205,7 @@ module("Acceptance | analysis", function (hooks) { await selectChoose( "[data-test-filter-customer]", ".ember-power-select-option", - 0 + 0, ); await click("tbody > tr:nth-child(1)"); @@ -248,7 +248,7 @@ module("Acceptance | analysis", function (hooks) { await selectChoose( "[data-test-filter-customer]", ".ember-power-select-option", - 0 + 0, ); await click("tbody > tr:nth-child(1)"); await click("tbody > tr:nth-child(2)"); diff --git a/frontend/tests/acceptance/external-employee-test.js b/frontend/tests/acceptance/external-employee-test.js index f5db0890c..1fc4ad953 100644 --- a/frontend/tests/acceptance/external-employee-test.js +++ b/frontend/tests/acceptance/external-employee-test.js @@ -17,7 +17,7 @@ module("Acceptance | external employee", function (hooks) { // get active employment and set it to isExternal const activeEmployment = this.user.employments.filter( - (e) => e.end === null + (e) => e.end === null, ); activeEmployment.update({ isExternal: true }); }); diff --git a/frontend/tests/acceptance/index-activities-edit-test.js b/frontend/tests/acceptance/index-activities-edit-test.js index 42a90f743..b0fc5b399 100644 --- a/frontend/tests/acceptance/index-activities-edit-test.js +++ b/frontend/tests/acceptance/index-activities-edit-test.js @@ -40,11 +40,11 @@ module("Acceptance | index activities edit", function (hooks) { await fillIn( "[data-test-activity-edit-form] [data-test-activity-block-row] td:nth-child(1) input", - "03:30" + "03:30", ); await fillIn( "[data-test-activity-edit-form] [data-test-activity-block-row] td:nth-child(3) input", - "04:30" + "04:30", ); await fillIn("[data-test-activity-edit-form] input[name=comment]", "Test"); @@ -107,11 +107,11 @@ module("Acceptance | index activities edit", function (hooks) { await fillIn( "[data-test-activity-block-row] td:nth-child(1) input", - "02:30" + "02:30", ); await fillIn( "[data-test-activity-block-row] td:nth-child(3) input", - "01:30" + "01:30", ); await blur("[data-test-activity-block-row] td:nth-child(3) input"); @@ -121,7 +121,7 @@ module("Acceptance | index activities edit", function (hooks) { await fillIn( "[data-test-activity-block-row] td:nth-child(1) input", - "00:30" + "00:30", ); await blur("[data-test-activity-block-row] td:nth-child(1) input"); diff --git a/frontend/tests/acceptance/index-activities-test.js b/frontend/tests/acceptance/index-activities-test.js index ed98953a7..3325aabf2 100644 --- a/frontend/tests/acceptance/index-activities-test.js +++ b/frontend/tests/acceptance/index-activities-test.js @@ -55,7 +55,7 @@ module("Acceptance | index activities", function (hooks) { await visit(`/?day=${lastDay.format("YYYY-MM-DD")}`); await click( - `[data-test-activity-row-id="${activity.id}"] [data-test-start-activity]` + `[data-test-activity-row-id="${activity.id}"] [data-test-start-activity]`, ); assert.strictEqual(currentURL(), "/"); @@ -95,17 +95,17 @@ module("Acceptance | index activities", function (hooks) { assert .dom( - `[data-test-report-row-id="${id}"] .form-group:first-child .ember-power-select-selected-item` + `[data-test-report-row-id="${id}"] .form-group:first-child .ember-power-select-selected-item`, ) .hasText(activity.task.project.customer.name); assert .dom( - `[data-test-report-row-id="${id}"] .form-group:nth-child(2) .ember-power-select-selected-item` + `[data-test-report-row-id="${id}"] .form-group:nth-child(2) .ember-power-select-selected-item`, ) .hasText(activity.task.project.name); assert .dom( - `[data-test-report-row-id="${id}"] .form-group:nth-child(3) .ember-power-select-selected-item` + `[data-test-report-row-id="${id}"] .form-group:nth-child(3) .ember-power-select-selected-item`, ) .hasText(activity.task.name); diff --git a/frontend/tests/acceptance/index-attendances-test.js b/frontend/tests/acceptance/index-attendances-test.js index 3d8cf8c06..c4696ee36 100644 --- a/frontend/tests/acceptance/index-attendances-test.js +++ b/frontend/tests/acceptance/index-attendances-test.js @@ -54,7 +54,7 @@ module("Acceptance | index attendances", function (hooks) { await visit("/attendances"); await click( - '[data-test-attendance-slider-id="1"] [data-test-delete-attendance]' + '[data-test-attendance-slider-id="1"] [data-test-delete-attendance]', ); assert.dom('[data-test-attendance-slider-id="1"]').doesNotExist(); diff --git a/frontend/tests/acceptance/index-reports-test.js b/frontend/tests/acceptance/index-reports-test.js index 8d6441319..91fb6cdf5 100644 --- a/frontend/tests/acceptance/index-reports-test.js +++ b/frontend/tests/acceptance/index-reports-test.js @@ -51,32 +51,32 @@ module("Acceptance | index reports", function (hooks) { await fillIn( ".form-list--reports .form-list-row:last-child [data-test-report-duration]", - "03:30" + "03:30", ); await fillIn( ".form-list--reports .form-list-row:last-child [data-test-report-comment]", - "Test comment report" + "Test comment report", ); await click( - ".form-list--reports .form-list-row:last-child [data-test-report-review]" + ".form-list--reports .form-list-row:last-child [data-test-report-review]", ); await click( - ".form-list--reports .form-list-row:last-child [data-test-report-not-billable]" + ".form-list--reports .form-list-row:last-child [data-test-report-not-billable]", ); await click( - ".form-list--reports .form-list-row:last-child [data-test-save-report]" + ".form-list--reports .form-list-row:last-child [data-test-save-report]", ); assert .dom( - "[data-test-report-row]:nth-last-child(2) [data-test-report-duration]" + "[data-test-report-row]:nth-last-child(2) [data-test-report-duration]", ) .hasValue("03:30"); assert .dom( - "[data-test-report-row]:nth-last-child(2) [data-test-report-comment]" + "[data-test-report-row]:nth-last-child(2) [data-test-report-comment]", ) .hasValue("Test comment report"); }); @@ -92,11 +92,11 @@ module("Acceptance | index reports", function (hooks) { await fillIn( `[data-test-report-row-id="${id}"] [data-test-report-duration]`, - "00:15" + "00:15", ); await fillIn( `[data-test-report-row-id="${id}"] [data-test-report-comment]`, - "Testyy" + "Testyy", ); assert @@ -153,7 +153,7 @@ module("Acceptance | index reports", function (hooks) { await fillIn( `[data-test-report-row-id="${id}"] [data-test-report-comment]`, - "test" + "test", ); await click(`[data-test-report-row-id="${id}"] [data-test-save-report]`); diff --git a/frontend/tests/acceptance/magic-link-test.js b/frontend/tests/acceptance/magic-link-test.js index 8ca55a782..24edca420 100644 --- a/frontend/tests/acceptance/magic-link-test.js +++ b/frontend/tests/acceptance/magic-link-test.js @@ -55,7 +55,7 @@ module("Acceptance | magic links", function (hooks) { test("can create a new draft report from a magic link", async function (assert) { await visit( - "/reports?task=2&duration=PT2H&comment=some+great+comment&review=true¬Billable=true" + "/reports?task=2&duration=PT2H&comment=some+great+comment&review=true¬Billable=true", ); const task = this.server.db.tasks.find(2); const project = this.server.db.projects.find(task.projectId); @@ -65,17 +65,17 @@ module("Acceptance | magic links", function (hooks) { assert .dom( - "[data-test-report-row]:last-child .customer-select .ember-power-select-selected-item" + "[data-test-report-row]:last-child .customer-select .ember-power-select-selected-item", ) .containsText(customer.name, "it sets the correct customer"); assert .dom( - "[data-test-report-row]:last-child .project-select .ember-power-select-selected-item" + "[data-test-report-row]:last-child .project-select .ember-power-select-selected-item", ) .containsText(project.name, "it sets the correct project"); assert .dom( - "[data-test-report-row]:last-child .task-select .ember-power-select-selected-item" + "[data-test-report-row]:last-child .task-select .ember-power-select-selected-item", ) .containsText(task.name, "it sets the correct task"); assert diff --git a/frontend/tests/acceptance/project-test.js b/frontend/tests/acceptance/project-test.js index 18b2d1828..be8f0cb17 100644 --- a/frontend/tests/acceptance/project-test.js +++ b/frontend/tests/acceptance/project-test.js @@ -56,13 +56,13 @@ module("Acceptance | projects", function (hooks) { await selectChoose( "[data-test-customer-selection]", ".ember-power-select-option", - 0 + 0, ); await selectChoose( "[data-test-project-selection]", ".ember-power-select-option", - 0 + 0, ); assert.dom("[data-test-add-task]").exists(); @@ -93,13 +93,13 @@ module("Acceptance | projects", function (hooks) { await selectChoose( "[data-test-customer-selection]", ".ember-power-select-option", - 0 + 0, ); await selectChoose( "[data-test-project-selection]", ".ember-power-select-option", - 0 + 0, ); assert.dom("[data-test-add-task]").exists(); @@ -187,13 +187,13 @@ module("Acceptance | projects", function (hooks) { await selectChoose( "[data-test-customer-selection]", ".ember-power-select-option", - 0 + 0, ); await selectChoose( "[data-test-project-selection]", ".ember-power-select-option", - 0 + 0, ); assert.ok(notifyErrorFunction.calledOnce); diff --git a/frontend/tests/acceptance/statistics-test.js b/frontend/tests/acceptance/statistics-test.js index 99e3f8436..745142ab0 100644 --- a/frontend/tests/acceptance/statistics-test.js +++ b/frontend/tests/acceptance/statistics-test.js @@ -79,7 +79,7 @@ module("Acceptance | statistics", function (hooks) { await fillIn( "[data-test-filter-from-date] input", - from.format("DD.MM.YYYY") + from.format("DD.MM.YYYY"), ); await fillIn("[data-test-filter-to-date] input", to.format("DD.MM.YYYY")); @@ -106,7 +106,7 @@ module("Acceptance | statistics", function (hooks) { await click(".nav-tabs li a:first-child"); assert.notOk( - currentURL().includes("Customer and project are required parameters") + currentURL().includes("Customer and project are required parameters"), ); }); @@ -130,7 +130,7 @@ module("Acceptance | statistics", function (hooks) { await visit( `/statistics?${Object.keys(params) .map((k) => `${k}=${params[k]}`) - .join("&")}` + .join("&")}`, ); assert @@ -155,7 +155,7 @@ module("Acceptance | statistics", function (hooks) { assert.strictEqual( find("[data-test-filter-billing-type] select").options.selectedIndex, - 1 + 1, ); assert.dom("[data-test-filter-from-date] input").exists(); diff --git a/frontend/tests/acceptance/tour-test.js b/frontend/tests/acceptance/tour-test.js index a2a6f1344..aac1d40a4 100644 --- a/frontend/tests/acceptance/tour-test.js +++ b/frontend/tests/acceptance/tour-test.js @@ -105,7 +105,7 @@ module("Acceptance | tour", function (hooks) { assert.strictEqual(currentRouteName().replace(/\.index$/, ""), site); for (const step of TOURS[site]) { const header = Array.from( - document.getElementsByClassName("shepherd-header") + document.getElementsByClassName("shepherd-header"), ).pop(); assert.dom(header).hasText(step.title); Array.from(document.getElementsByClassName("shepherd-button-primary")) diff --git a/frontend/tests/acceptance/users-edit-credits-absence-credit-test.js b/frontend/tests/acceptance/users-edit-credits-absence-credit-test.js index 3d5edf84f..52a9765f5 100644 --- a/frontend/tests/acceptance/users-edit-credits-absence-credit-test.js +++ b/frontend/tests/acceptance/users-edit-credits-absence-credit-test.js @@ -40,7 +40,7 @@ module("Acceptance | users edit credits absence credit", function (hooks) { assert.strictEqual( currentURL(), - `/users/${this.user.id}/credits/absence-credits/${id}` + `/users/${this.user.id}/credits/absence-credits/${id}`, ); await fillIn("input[name=date]", moment().format("DD.MM.YYYY")); @@ -55,19 +55,19 @@ module("Acceptance | users edit credits absence credit", function (hooks) { assert .dom( - "[data-test-absence-credits] tbody > tr:first-child > td:nth-child(1)" + "[data-test-absence-credits] tbody > tr:first-child > td:nth-child(1)", ) .hasText(moment().format("DD.MM.YYYY")); assert .dom( - "[data-test-absence-credits] tbody > tr:first-child > td:nth-child(2)" + "[data-test-absence-credits] tbody > tr:first-child > td:nth-child(2)", ) .hasText("5"); assert .dom( - "[data-test-absence-credits] tbody > tr:first-child > td:nth-child(4)" + "[data-test-absence-credits] tbody > tr:first-child > td:nth-child(4)", ) .hasText("Ding dong"); }); @@ -90,7 +90,7 @@ module("Acceptance | users edit credits absence credit", function (hooks) { await click(".btn-group .btn:first-child"); await fillIn( "input[name=date]", - moment().add(1, "years").format("DD.MM.YYYY") + moment().add(1, "years").format("DD.MM.YYYY"), ); await fillIn("input[name=days]", "5"); await fillIn("input[name=comment]", "Comment"); @@ -99,7 +99,7 @@ module("Acceptance | users edit credits absence credit", function (hooks) { assert.strictEqual( currentURL(), - `/users/${this.user.id}/credits?year=${moment().year() + 1}` + `/users/${this.user.id}/credits?year=${moment().year() + 1}`, ); }); }); diff --git a/frontend/tests/acceptance/users-edit-credits-overtime-credit-test.js b/frontend/tests/acceptance/users-edit-credits-overtime-credit-test.js index 77f5542fc..f9f4a1085 100644 --- a/frontend/tests/acceptance/users-edit-credits-overtime-credit-test.js +++ b/frontend/tests/acceptance/users-edit-credits-overtime-credit-test.js @@ -39,7 +39,7 @@ module("Acceptance | users edit credits overtime credit", function (hooks) { assert.strictEqual( currentURL(), - `/users/${this.user.id}/credits/overtime-credits/${id}` + `/users/${this.user.id}/credits/overtime-credits/${id}`, ); await fillIn("input[name=date]", moment().format("DD.MM.YYYY")); @@ -54,19 +54,19 @@ module("Acceptance | users edit credits overtime credit", function (hooks) { assert .dom( - "[data-test-overtime-credits] tbody > tr:first-child > td:nth-child(1)" + "[data-test-overtime-credits] tbody > tr:first-child > td:nth-child(1)", ) .hasText(moment().format("DD.MM.YYYY")); assert .dom( - "[data-test-overtime-credits] tbody > tr:first-child > td:nth-child(2)" + "[data-test-overtime-credits] tbody > tr:first-child > td:nth-child(2)", ) .hasText("20h 0m"); assert .dom( - "[data-test-overtime-credits] tbody > tr:first-child > td:nth-child(3)" + "[data-test-overtime-credits] tbody > tr:first-child > td:nth-child(3)", ) .hasText("Ding dong"); }); @@ -88,7 +88,7 @@ module("Acceptance | users edit credits overtime credit", function (hooks) { await fillIn( "input[name=date]", - moment().add(1, "years").format("DD.MM.YYYY") + moment().add(1, "years").format("DD.MM.YYYY"), ); await fillIn("input[name=duration]", "20:00"); await fillIn("input[name=comment]", "Ding dong"); @@ -97,7 +97,7 @@ module("Acceptance | users edit credits overtime credit", function (hooks) { assert.strictEqual( currentURL(), - `/users/${this.user.id}/credits?year=${moment().year() + 1}` + `/users/${this.user.id}/credits?year=${moment().year() + 1}`, ); }); }); diff --git a/frontend/tests/helpers/responsive.js b/frontend/tests/helpers/responsive.js index 01c576fe4..68057b9c2 100644 --- a/frontend/tests/helpers/responsive.js +++ b/frontend/tests/helpers/responsive.js @@ -30,7 +30,7 @@ MediaService.reopen({ this.setProperties(props); } else { throw new Error( - `You tried to set the breakpoint to ${breakpoint}, which is not in your app/breakpoint.js file.` + `You tried to set the breakpoint to ${breakpoint}, which is not in your app/breakpoint.js file.`, ); } }, diff --git a/frontend/tests/helpers/task-select.js b/frontend/tests/helpers/task-select.js index 487d03e83..e16d0edeb 100644 --- a/frontend/tests/helpers/task-select.js +++ b/frontend/tests/helpers/task-select.js @@ -2,13 +2,13 @@ import { selectChoose } from "ember-power-select/test-support"; export default async function ( selector = "", - options = { fromHistory: false } + options = { fromHistory: false }, ) { if (options.fromHistory) { await selectChoose( `${selector} .customer-select`, ".ember-power-select-option", - 0 + 0, ); return; @@ -17,16 +17,16 @@ export default async function ( await selectChoose( `${selector} .customer-select`, ".ember-power-select-option", - 1 + 1, ); await selectChoose( `${selector} .project-select`, ".ember-power-select-option", - 0 + 0, ); await selectChoose( `${selector} .task-select`, ".ember-power-select-option", - 0 + 0, ); } diff --git a/frontend/tests/helpers/user-select.js b/frontend/tests/helpers/user-select.js index 0cec5cf14..093a43660 100644 --- a/frontend/tests/helpers/user-select.js +++ b/frontend/tests/helpers/user-select.js @@ -4,6 +4,6 @@ export default async function (selector = "") { await selectChoose( `${selector} .user-select`, ".ember-power-select-option", - 0 + 0, ); } diff --git a/frontend/tests/integration/components/attendance-slider/component-test.js b/frontend/tests/integration/components/attendance-slider/component-test.js index 308d07db0..f8eedf0e8 100644 --- a/frontend/tests/integration/components/attendance-slider/component-test.js +++ b/frontend/tests/integration/components/attendance-slider/component-test.js @@ -47,7 +47,7 @@ module("Integration | Component | attendance slider", function (hooks) { EmberObject.create({ from: moment({ h: 0, m: 0, s: 0 }), to: moment({ h: 0, m: 0, s: 0 }), - }) + }), ); await render(hbs` diff --git a/frontend/tests/integration/components/balance-donut/component-test.js b/frontend/tests/integration/components/balance-donut/component-test.js index 0fd3402b8..6a8520521 100644 --- a/frontend/tests/integration/components/balance-donut/component-test.js +++ b/frontend/tests/integration/components/balance-donut/component-test.js @@ -20,7 +20,7 @@ module("Integration | Component | balance donut", function (hooks) { assert.strictEqual( find(".donut-segment").getAttribute("stroke-dasharray"), - "50 50" + "50 50", ); }); @@ -37,7 +37,7 @@ module("Integration | Component | balance donut", function (hooks) { assert.strictEqual( find(".donut-segment").getAttribute("stroke-dasharray"), - "100 0" + "100 0", ); }); @@ -54,7 +54,7 @@ module("Integration | Component | balance donut", function (hooks) { assert.strictEqual( find(".donut-segment").getAttribute("stroke-dasharray"), - "100 0" + "100 0", ); }); @@ -69,7 +69,7 @@ module("Integration | Component | balance donut", function (hooks) { assert.strictEqual( find(".donut-segment").getAttribute("stroke-dasharray"), - "100 0" + "100 0", ); }); }); diff --git a/frontend/tests/integration/components/date-buttons/component-test.js b/frontend/tests/integration/components/date-buttons/component-test.js index 7b401e43b..bb09e8d9e 100644 --- a/frontend/tests/integration/components/date-buttons/component-test.js +++ b/frontend/tests/integration/components/date-buttons/component-test.js @@ -17,50 +17,50 @@ module("Integration | Component | date buttons", function (hooks) { @onUpdateFromDate={{fn (mut this.fromDate)}} @onUpdateToDate={{fn (mut this.toDate)}} /> - ` + `, ); await click('[data-test-preset-date="0"]'); assert.strictEqual( this.fromDate.format(format), - moment().day(1).format(format) + moment().day(1).format(format), ); await click('[data-test-preset-date="1"]'); assert.strictEqual( this.fromDate.format(format), - moment().date(1).format(format) + moment().date(1).format(format), ); await click('[data-test-preset-date="2"]'); assert.strictEqual( this.fromDate.format(format), - moment().dayOfYear(1).format(format) + moment().dayOfYear(1).format(format), ); await click('[data-test-preset-date="3"]'); assert.strictEqual( this.fromDate.format(format), - moment().subtract(1, "week").day(1).format(format) + moment().subtract(1, "week").day(1).format(format), ); assert.strictEqual( this.toDate.format(format), - moment().subtract(1, "week").day(7).format(format) + moment().subtract(1, "week").day(7).format(format), ); await click('[data-test-preset-date="4"]'); assert.strictEqual( this.fromDate.format(format), - moment().subtract(1, "month").startOf("month").format(format) + moment().subtract(1, "month").startOf("month").format(format), ); assert.strictEqual( this.toDate.format(format), - moment().subtract(1, "month").endOf("month").format(format) + moment().subtract(1, "month").endOf("month").format(format), ); await click('[data-test-preset-date="5"]'); assert.strictEqual( this.fromDate.format(format), - moment().subtract(1, "year").startOf("year").format(format) + moment().subtract(1, "year").startOf("year").format(format), ); assert.strictEqual( this.toDate.format(format), - moment().subtract(1, "year").endOf("year").format(format) + moment().subtract(1, "year").endOf("year").format(format), ); }); }); diff --git a/frontend/tests/integration/components/date-navigation/component-test.js b/frontend/tests/integration/components/date-navigation/component-test.js index 7d8e47546..de04cb7b4 100644 --- a/frontend/tests/integration/components/date-navigation/component-test.js +++ b/frontend/tests/integration/components/date-navigation/component-test.js @@ -13,7 +13,7 @@ module("Integration | Component | date navigation", function (hooks) { this.set("date", DATE); await render( - hbs`` + hbs``, ); assert.strictEqual(this.date.format("YYYY-MM-DD"), "2017-01-10"); @@ -23,7 +23,7 @@ module("Integration | Component | date navigation", function (hooks) { this.set("date", DATE); await render( - hbs`` + hbs``, ); await click("[data-test-next]"); @@ -35,7 +35,7 @@ module("Integration | Component | date navigation", function (hooks) { this.set("date", DATE); await render( - hbs`` + hbs``, ); await click("[data-test-previous]"); @@ -47,14 +47,14 @@ module("Integration | Component | date navigation", function (hooks) { this.set("date", DATE); await render( - hbs`` + hbs``, ); await click("[data-test-today]"); assert.strictEqual( this.date.format("YYYY-MM-DD"), - moment().format("YYYY-MM-DD") + moment().format("YYYY-MM-DD"), ); }); }); diff --git a/frontend/tests/integration/components/duration-since/component-test.js b/frontend/tests/integration/components/duration-since/component-test.js index 04e7a915d..6cc31bdbe 100644 --- a/frontend/tests/integration/components/duration-since/component-test.js +++ b/frontend/tests/integration/components/duration-since/component-test.js @@ -13,7 +13,7 @@ module("Integration | Component | duration since", function (hooks) { moment().milliseconds(0).subtract({ minutes: 5, seconds: 5, - }) + }), ); await render(hbs``); @@ -28,7 +28,7 @@ module("Integration | Component | duration since", function (hooks) { moment().subtract({ minutes: 5, seconds: 5, - }) + }), ); this.set( @@ -37,11 +37,11 @@ module("Integration | Component | duration since", function (hooks) { hours: 1, minutes: 1, seconds: 1, - }) + }), ); await render( - hbs`` + hbs``, ); assert.ok(this.element); diff --git a/frontend/tests/integration/components/filter-sidebar/filter/component-test.js b/frontend/tests/integration/components/filter-sidebar/filter/component-test.js index fde126f77..26a688b7f 100644 --- a/frontend/tests/integration/components/filter-sidebar/filter/component-test.js +++ b/frontend/tests/integration/components/filter-sidebar/filter/component-test.js @@ -32,7 +32,7 @@ module("Integration | Component | filter sidebar/filter", function (hooks) { assert.deepEqual( findAll("button").map((b) => b.innerHTML.trim()), - ["test 1", "test 2", "test 3"] + ["test 1", "test 2", "test 3"], ); assert.strictEqual(find("button.active").innerHTML.trim(), "test 2"); @@ -67,11 +67,11 @@ module("Integration | Component | filter sidebar/filter", function (hooks) { assert.deepEqual( findAll("option").map((b) => b.innerHTML.trim()), - ["test 1", "test 2", "test 3"] + ["test 1", "test 2", "test 3"], ); assert.strictEqual( findAll("option")[find("select").options.selectedIndex].innerHTML.trim(), - "test 2" + "test 2", ); await fillIn("select", "1"); @@ -96,7 +96,7 @@ module("Integration | Component | filter sidebar/filter", function (hooks) { assert.strictEqual( this.selected.format(), - moment({ year: 2010, month: 9, day: 10 }).format() + moment({ year: 2010, month: 9, day: 10 }).format(), ); }); diff --git a/frontend/tests/integration/components/progress-tooltip/component-test.js b/frontend/tests/integration/components/progress-tooltip/component-test.js index 0ccae5132..d8e42102c 100644 --- a/frontend/tests/integration/components/progress-tooltip/component-test.js +++ b/frontend/tests/integration/components/progress-tooltip/component-test.js @@ -21,7 +21,7 @@ module("Integration | Component | progress tooltip", function (hooks) { constructor: EmberObject.create({ modelName: "project", }), - }) + }), ); this.set( @@ -34,7 +34,7 @@ module("Integration | Component | progress tooltip", function (hooks) { }), totalRemainingEffort: moment.duration({ h: 2 }), remainingEffortTracking: true, - }) + }), ); }); @@ -79,7 +79,7 @@ module("Integration | Component | progress tooltip", function (hooks) { constructor: EmberObject.create({ modelName: "task", }), - }) + }), ); await render(hbs` @@ -113,7 +113,7 @@ module("Integration | Component | progress tooltip", function (hooks) { modelName: "task", }), project: this.project_with_remaining_effort, - }) + }), ); await render(hbs` @@ -135,7 +135,7 @@ module("Integration | Component | progress tooltip", function (hooks) { constructor: EmberObject.create({ modelName: "task", }), - }) + }), ); this.set("visible", false); diff --git a/frontend/tests/integration/components/report-row/component-test.js b/frontend/tests/integration/components/report-row/component-test.js index 032daf487..b0247af02 100644 --- a/frontend/tests/integration/components/report-row/component-test.js +++ b/frontend/tests/integration/components/report-row/component-test.js @@ -12,7 +12,7 @@ module("Integration | Component | report row", function (hooks) { test("renders", async function (assert) { this.set( "report", - EmberObject.create({ verifiedBy: EmberObject.create() }) + EmberObject.create({ verifiedBy: EmberObject.create() }), ); await render(hbs``); @@ -26,7 +26,7 @@ module("Integration | Component | report row", function (hooks) { test("can delete row", async function (assert) { this.set( "report", - EmberObject.create({ verifiedBy: EmberObject.create() }) + EmberObject.create({ verifiedBy: EmberObject.create() }), ); this.set("didDelete", false); @@ -51,7 +51,7 @@ module("Integration | Component | report row", function (hooks) { fullName: "John Doe", }), billed: true, - }) + }), ); await render(hbs``); @@ -62,7 +62,7 @@ module("Integration | Component | report row", function (hooks) { this.set( "report", - EmberObject.create({ verifiedBy: EmberObject.create() }) + EmberObject.create({ verifiedBy: EmberObject.create() }), ); assert.dom("input").isNotDisabled(); diff --git a/frontend/tests/integration/components/sort-header/component-test.js b/frontend/tests/integration/components/sort-header/component-test.js index d563a6af1..f894e2c38 100644 --- a/frontend/tests/integration/components/sort-header/component-test.js +++ b/frontend/tests/integration/components/sort-header/component-test.js @@ -18,7 +18,7 @@ module("Integration | Component | sort header", function (hooks) { }); await render( - hbs`` + hbs``, ); assert.dom(".fa-sort-down").exists({ count: 1 }); diff --git a/frontend/tests/integration/components/statistic-list/bar/component-test.js b/frontend/tests/integration/components/statistic-list/bar/component-test.js index be8dcbb73..018ef5386 100644 --- a/frontend/tests/integration/components/statistic-list/bar/component-test.js +++ b/frontend/tests/integration/components/statistic-list/bar/component-test.js @@ -15,13 +15,13 @@ module("Integration | Component | statistic list/bar", function (hooks) { assert.strictEqual( window.getComputedStyle(element).getPropertyValue("--value").trim(), - "0.5" + "0.5", ); }); test("The element should have remaining class if the remaining is defined", async function (assert) { await render( - hbs`` + hbs``, ); const element = this.element.querySelector(".statistic-list-bar"); @@ -37,11 +37,11 @@ module("Integration | Component | statistic list/bar", function (hooks) { .getComputedStyle(remainingEelement) .getPropertyValue("--value") .trim(), - "0.25" + "0.25", ); assert.strictEqual( window.getComputedStyle(element).getPropertyValue("--value").trim(), - "0.5" + "0.5", ); }); @@ -59,7 +59,7 @@ module("Integration | Component | statistic list/bar", function (hooks) { test("The Chart color is blue when spent effort is in the budget", async function (assert) { await render( - hbs`` + hbs``, ); const element = this.element.querySelector(".statistic-list-bar"); @@ -74,7 +74,7 @@ module("Integration | Component | statistic list/bar", function (hooks) { test("The Chart color is green when spent effort is in the budget and the task is archived", async function (assert) { await render( - hbs`` + hbs``, ); const element = this.element.querySelector(".statistic-list-bar"); @@ -89,7 +89,7 @@ module("Integration | Component | statistic list/bar", function (hooks) { test("The Chart color is RED when spent effort is over the budget", async function (assert) { await render( - hbs`` + hbs``, ); const element = this.element.querySelector(".statistic-list-bar"); @@ -102,7 +102,7 @@ module("Integration | Component | statistic list/bar", function (hooks) { test("The Chart color is red when spent effort is over the budget", async function (assert) { await render( - hbs`` + hbs``, ); const element = this.element.querySelector(".statistic-list-bar"); @@ -115,7 +115,7 @@ module("Integration | Component | statistic list/bar", function (hooks) { test("The Chart color is blue & there is remaining when spent effort is in the budget", async function (assert) { await render( - hbs`` + hbs``, ); const element = this.element.querySelector(".statistic-list-bar"); @@ -131,7 +131,7 @@ module("Integration | Component | statistic list/bar", function (hooks) { test("The Chart color is blue & the remaining is red when spent effort is in the budget, and the remaining is over the budget", async function (assert) { await render( - hbs`` + hbs``, ); const element = this.element.querySelector(".statistic-list-bar"); @@ -147,7 +147,7 @@ module("Integration | Component | statistic list/bar", function (hooks) { test("The Chart color is red & the remaining is red when spent effort is over the budget, and the remaining is over the budget", async function (assert) { await render( - hbs`` + hbs``, ); const element = this.element.querySelector(".statistic-list-bar"); diff --git a/frontend/tests/integration/components/statistic-list/column/component-test.js b/frontend/tests/integration/components/statistic-list/column/component-test.js index b652565fe..4e4caa882 100644 --- a/frontend/tests/integration/components/statistic-list/column/component-test.js +++ b/frontend/tests/integration/components/statistic-list/column/component-test.js @@ -11,7 +11,7 @@ module("Integration | Component | statistic list/column", function (hooks) { test("renders with default layout", async function (assert) { this.set("value", "test"); await render( - hbs`` + hbs``, ); assert.dom("td").hasText(this.value); }); @@ -20,7 +20,7 @@ module("Integration | Component | statistic list/column", function (hooks) { const duration = moment.duration({ h: 3 }); this.set("value", duration); await render( - hbs`` + hbs``, ); assert.dom("td").hasText(humanizeDuration(duration)); }); @@ -29,7 +29,7 @@ module("Integration | Component | statistic list/column", function (hooks) { const date = moment(); this.set("value", date); await render( - hbs`` + hbs``, ); assert.dom("td").hasText(date.format("MMMM")); }); diff --git a/frontend/tests/integration/components/sy-checkbox/component-test.js b/frontend/tests/integration/components/sy-checkbox/component-test.js index 5254cdfe3..21cdfca3d 100644 --- a/frontend/tests/integration/components/sy-checkbox/component-test.js +++ b/frontend/tests/integration/components/sy-checkbox/component-test.js @@ -22,7 +22,7 @@ module("Integration | Component | sy checkbox", function (hooks) { this.set("checked", false); await render( - hbs`` + hbs``, ); assert.dom("input").isNotChecked(); @@ -43,7 +43,7 @@ module("Integration | Component | sy checkbox", function (hooks) { this.set("checked", null); await render( - hbs`` + hbs``, ); assert.ok(find("input").indeterminate); diff --git a/frontend/tests/integration/components/sy-datepicker-btn/component-test.js b/frontend/tests/integration/components/sy-datepicker-btn/component-test.js index 798e3949b..e3f3a81cb 100644 --- a/frontend/tests/integration/components/sy-datepicker-btn/component-test.js +++ b/frontend/tests/integration/components/sy-datepicker-btn/component-test.js @@ -12,7 +12,7 @@ module("Integration | Component | sy datepicker btn", function (hooks) { this.set("value", moment()); await render( - hbs`` + hbs``, ); assert.dom(".sy-datepicker").doesNotExist(); @@ -26,13 +26,13 @@ module("Integration | Component | sy datepicker btn", function (hooks) { this.set("value", moment()); await render( - hbs`` + hbs``, ); await clickTrigger(); const target = find( - ".ember-power-calendar-day-grid .ember-power-calendar-row:last-child .ember-power-calendar-day:last-child" + ".ember-power-calendar-day-grid .ember-power-calendar-row:last-child .ember-power-calendar-day:last-child", ); target.click(); diff --git a/frontend/tests/integration/components/sy-datepicker/component-test.js b/frontend/tests/integration/components/sy-datepicker/component-test.js index ba019ab27..0a1375f13 100644 --- a/frontend/tests/integration/components/sy-datepicker/component-test.js +++ b/frontend/tests/integration/components/sy-datepicker/component-test.js @@ -12,7 +12,7 @@ module("Integration | Component | sy datepicker", function (hooks) { this.set("value", moment()); await render( - hbs`` + hbs``, ); assert.dom("input").hasValue(moment().format("DD.MM.YYYY")); @@ -22,7 +22,7 @@ module("Integration | Component | sy datepicker", function (hooks) { this.set("value", moment()); await render( - hbs`` + hbs``, ); assert.dom(".sy-datepicker").doesNotExist(); @@ -36,7 +36,7 @@ module("Integration | Component | sy datepicker", function (hooks) { this.set("value", null); await render( - hbs`` + hbs``, ); assert.ok(find("input").validity.valid); @@ -56,7 +56,7 @@ module("Integration | Component | sy datepicker", function (hooks) { this.set("value", moment()); await render( - hbs`` + hbs``, ); find("input").value = "1.2.2018"; @@ -80,12 +80,12 @@ module("Integration | Component | sy datepicker", function (hooks) { this.set("value", moment()); await render( - hbs`` + hbs``, ); await clickTrigger(); await click( - ".ember-power-calendar-day-grid .ember-power-calendar-row:last-child .ember-power-calendar-day:last-child" + ".ember-power-calendar-day-grid .ember-power-calendar-row:last-child .ember-power-calendar-day:last-child", ); const expected = moment().endOf("month").endOf("week"); @@ -97,7 +97,7 @@ module("Integration | Component | sy datepicker", function (hooks) { this.set("value", moment()); await render( - hbs`` + hbs``, ); assert.dom(".sy-datepicker").doesNotExist(); diff --git a/frontend/tests/integration/components/sy-durationpicker/component-test.js b/frontend/tests/integration/components/sy-durationpicker/component-test.js index 16f5f0471..beca5eb49 100644 --- a/frontend/tests/integration/components/sy-durationpicker/component-test.js +++ b/frontend/tests/integration/components/sy-durationpicker/component-test.js @@ -44,11 +44,11 @@ module("Integration | Component | sy durationpicker", function (hooks) { moment.duration({ h: 12, m: 30, - }) + }), ); await render( - hbs`` + hbs``, ); await fillIn("input", "13:15"); @@ -64,11 +64,11 @@ module("Integration | Component | sy durationpicker", function (hooks) { moment.duration({ h: 12, m: 30, - }) + }), ); await render( - hbs`` + hbs``, ); await fillIn("input", "-13:00"); @@ -83,11 +83,11 @@ module("Integration | Component | sy durationpicker", function (hooks) { moment.duration({ h: 12, m: 30, - }) + }), ); await render( - hbs`` + hbs``, ); await fillIn("input", "abcdef"); @@ -103,11 +103,11 @@ module("Integration | Component | sy durationpicker", function (hooks) { moment.duration({ h: 12, m: 15, - }) + }), ); await render( - hbs`` + hbs``, ); this.element @@ -126,11 +126,11 @@ module("Integration | Component | sy durationpicker", function (hooks) { moment.duration({ h: 12, m: 15, - }) + }), ); await render( - hbs`` + hbs``, ); this.element @@ -149,7 +149,7 @@ module("Integration | Component | sy durationpicker", function (hooks) { moment.duration({ h: 12, m: 30, - }) + }), ); this.set( @@ -157,7 +157,7 @@ module("Integration | Component | sy durationpicker", function (hooks) { moment.duration({ h: 12, m: 30, - }) + }), ); this.set( @@ -165,11 +165,11 @@ module("Integration | Component | sy durationpicker", function (hooks) { moment.duration({ h: 12, m: 30, - }) + }), ); await render( - hbs`` + hbs``, ); this.element @@ -195,7 +195,7 @@ module("Integration | Component | sy durationpicker", function (hooks) { this.set("value", null); await render( - hbs`` + hbs``, ); await fillIn("input", "-04:30"); diff --git a/frontend/tests/integration/components/sy-timepicker/component-test.js b/frontend/tests/integration/components/sy-timepicker/component-test.js index c7a7943f8..2e0f4a92b 100644 --- a/frontend/tests/integration/components/sy-timepicker/component-test.js +++ b/frontend/tests/integration/components/sy-timepicker/component-test.js @@ -27,11 +27,11 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 30, - }) + }), ); await render( - hbs`` + hbs``, ); await fillIn("input", "13:15"); @@ -47,11 +47,11 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 30, - }) + }), ); await render( - hbs`` + hbs``, ); await fillIn("input", "24:15"); @@ -65,7 +65,7 @@ module("Integration | Component | sy timepicker", function (hooks) { this.set("value", null); await render( - hbs`` + hbs``, ); await fillIn("input", "xx:xx"); @@ -85,17 +85,17 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 15, - }) + }), ); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( - async (element) => await triggerKeyEvent(element, "keydown", 38) + async (element) => await triggerKeyEvent(element, "keydown", 38), ); await settled(); @@ -110,17 +110,17 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 15, - }) + }), ); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( - async (element) => await triggerKeyEvent(element, "keydown", 40) + async (element) => await triggerKeyEvent(element, "keydown", 40), ); await settled(); @@ -135,18 +135,18 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 15, - }) + }), ); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( async (element) => - await triggerKeyEvent(element, "keydown", 38, { shiftKey: true }) + await triggerKeyEvent(element, "keydown", 38, { shiftKey: true }), ); await settled(); @@ -161,18 +161,18 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 15, - }) + }), ); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( async (element) => - await triggerKeyEvent(element, "keydown", 40, { shiftKey: true }) + await triggerKeyEvent(element, "keydown", 40, { shiftKey: true }), ); await settled(); @@ -187,18 +187,18 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 15, - }) + }), ); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( async (element) => - await triggerKeyEvent(element, "keydown", 38, { ctrlKey: true }) + await triggerKeyEvent(element, "keydown", 38, { ctrlKey: true }), ); await settled(); @@ -213,18 +213,18 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 15, - }) + }), ); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( async (element) => - await triggerKeyEvent(element, "keydown", 40, { ctrlKey: true }) + await triggerKeyEvent(element, "keydown", 40, { ctrlKey: true }), ); await settled(); @@ -239,17 +239,17 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 23, m: 45, - }) + }), ); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( - async (element) => await triggerKeyEvent(element, "keydown", 38) + async (element) => await triggerKeyEvent(element, "keydown", 38), ); await settled(); @@ -264,7 +264,7 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 30, - }) + }), ); this.set( @@ -272,7 +272,7 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 30, - }) + }), ); this.set( @@ -280,17 +280,17 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 12, m: 30, - }) + }), ); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( - async (element) => await triggerKeyEvent(element, "keydown", 38) + async (element) => await triggerKeyEvent(element, "keydown", 38), ); await settled(); @@ -301,7 +301,7 @@ module("Integration | Component | sy timepicker", function (hooks) { this.element .querySelectorAll("input") .forEach( - async (element) => await triggerKeyEvent(element, "keydown", 40) + async (element) => await triggerKeyEvent(element, "keydown", 40), ); await settled(); @@ -316,17 +316,17 @@ module("Integration | Component | sy timepicker", function (hooks) { moment({ h: 10, m: 0, - }) + }), ); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( - async (element) => await triggerKeyEvent(element, "keydown", 38) + async (element) => await triggerKeyEvent(element, "keydown", 38), ); await settled(); @@ -339,7 +339,7 @@ module("Integration | Component | sy timepicker", function (hooks) { this.set("value", moment({ h: 12, m: 30 })); await render( - hbs`` + hbs``, ); await fillIn("input", ""); @@ -352,13 +352,13 @@ module("Integration | Component | sy timepicker", function (hooks) { this.set("value", null); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( - async (element) => await triggerKeyEvent(element, "keydown", 38) + async (element) => await triggerKeyEvent(element, "keydown", 38), ); await settled(); @@ -371,13 +371,13 @@ module("Integration | Component | sy timepicker", function (hooks) { this.set("value", null); await render( - hbs`` + hbs``, ); this.element .querySelectorAll("input") .forEach( - async (element) => await triggerKeyEvent(element, "keydown", 40) + async (element) => await triggerKeyEvent(element, "keydown", 40), ); await settled(); diff --git a/frontend/tests/integration/components/sy-toggle/component-test.js b/frontend/tests/integration/components/sy-toggle/component-test.js index 900bdccb9..3d9af8e02 100644 --- a/frontend/tests/integration/components/sy-toggle/component-test.js +++ b/frontend/tests/integration/components/sy-toggle/component-test.js @@ -31,7 +31,7 @@ module("Integration | Component | sy-toggle", function (hooks) { this.set("value", true); await render( - hbs`` + hbs``, ); assert.dom(".sy-toggle").hasClass("active"); @@ -48,7 +48,7 @@ module("Integration | Component | sy-toggle", function (hooks) { test("it includes the hint", async function (assert) { this.set("disabled", false); await render( - hbs`` + hbs``, ); assert.dom(".sy-toggle").hasAttribute("title", "test"); diff --git a/frontend/tests/integration/components/task-selection/component-test.js b/frontend/tests/integration/components/task-selection/component-test.js index 8089cb247..416bcbf6b 100644 --- a/frontend/tests/integration/components/task-selection/component-test.js +++ b/frontend/tests/integration/components/task-selection/component-test.js @@ -72,7 +72,7 @@ module("Integration | Component | task selection", function (hooks) { this.element .querySelector(".customer-select .ember-power-select-selected-item") .innerHTML.trim(), - CUSTOMER.name + CUSTOMER.name, ); }); @@ -98,13 +98,13 @@ module("Integration | Component | task selection", function (hooks) { this.element .querySelector(".customer-select .ember-power-select-selected-item") .innerHTML.trim(), - CUSTOMER.name + CUSTOMER.name, ); assert.strictEqual( this.element .querySelector(".project-select .ember-power-select-selected-item") .innerHTML.trim(), - PROJECT.name + PROJECT.name, ); }); @@ -130,19 +130,19 @@ module("Integration | Component | task selection", function (hooks) { this.element .querySelector(".customer-select .ember-power-select-selected-item") .innerHTML.trim(), - CUSTOMER.name + CUSTOMER.name, ); assert.strictEqual( this.element .querySelector(".project-select .ember-power-select-selected-item") .innerHTML.trim(), - PROJECT.name + PROJECT.name, ); assert.strictEqual( this.element .querySelector(".task-select .ember-power-select-selected-item") .innerHTML.trim(), - TASK.name + TASK.name, ); }); diff --git a/frontend/tests/integration/components/user-selection/component-test.js b/frontend/tests/integration/components/user-selection/component-test.js index e71326be9..6752f3b3e 100644 --- a/frontend/tests/integration/components/user-selection/component-test.js +++ b/frontend/tests/integration/components/user-selection/component-test.js @@ -21,7 +21,7 @@ module("Integration | Component | user selection", function (hooks) { assert.strictEqual( find(".user-select .ember-power-select-selected-item").textContent.trim(), - user.longName + user.longName, ); }); }); diff --git a/frontend/tests/integration/components/weekly-overview-benchmark/component-test.js b/frontend/tests/integration/components/weekly-overview-benchmark/component-test.js index b3b4b59a9..5d418514a 100644 --- a/frontend/tests/integration/components/weekly-overview-benchmark/component-test.js +++ b/frontend/tests/integration/components/weekly-overview-benchmark/component-test.js @@ -20,7 +20,7 @@ module("Integration | Component | weekly overview benchmark", function (hooks) { test("shows labels only when permitted", async function (assert) { await render( - hbs`` + hbs``, ); assert.strictEqual(find("span").textContent, "8.5h"); diff --git a/frontend/tests/integration/components/weekly-overview-day/component-test.js b/frontend/tests/integration/components/weekly-overview-day/component-test.js index bbcf3934a..6dab80985 100644 --- a/frontend/tests/integration/components/weekly-overview-day/component-test.js +++ b/frontend/tests/integration/components/weekly-overview-day/component-test.js @@ -13,7 +13,7 @@ module("Integration | Component | weekly overview day", function (hooks) { this.set("worktime", moment.duration({ h: 8 })); await render( - hbs`` + hbs``, ); assert.ok(this.element); @@ -27,7 +27,7 @@ module("Integration | Component | weekly overview day", function (hooks) { this.set("worktime", moment.duration({ h: 8, m: 30 })); await render( - hbs`` + hbs``, ); assert @@ -42,7 +42,7 @@ module("Integration | Component | weekly overview day", function (hooks) { this.set("clicked", false); await render( - hbs`` + hbs``, ); assert.notOk(this.clicked); @@ -51,7 +51,7 @@ module("Integration | Component | weekly overview day", function (hooks) { assert.notOk(this.clicked); await render( - hbs`` + hbs``, ); assert.notOk(this.clicked); diff --git a/frontend/tests/integration/components/worktime-balance-chart/component-test.js b/frontend/tests/integration/components/worktime-balance-chart/component-test.js index d58206c57..b914d9271 100644 --- a/frontend/tests/integration/components/worktime-balance-chart/component-test.js +++ b/frontend/tests/integration/components/worktime-balance-chart/component-test.js @@ -17,20 +17,20 @@ module("Integration | Component | worktime balance chart", function (hooks) { super(owner, args); testContext.component = this; } - } + }, ); }); test("computes the data correctly", async function (assert) { const dates = [...new Array(3).keys()].map((i) => - moment().subtract(i, "days") + moment().subtract(i, "days"), ); this.set( "data", dates.map((date) => ({ balance: moment.duration({ h: 10 }), date, - })) + })), ); await render(hbs``); @@ -38,7 +38,7 @@ module("Integration | Component | worktime balance chart", function (hooks) { assert.deepEqual( this.component.data.labels.map((l) => l.format("YYYY-MM-DD")), - dates.map((d) => d.format("YYYY-MM-DD")) + dates.map((d) => d.format("YYYY-MM-DD")), ); assert.deepEqual(this.component.data.datasets, [{ data: [10, 10, 10] }]); @@ -52,7 +52,7 @@ module("Integration | Component | worktime balance chart", function (hooks) { assert.strictEqual( titleFn([{ index: 0 }], { labels: [moment()] }), - moment().format("DD.MM.YYYY") + moment().format("DD.MM.YYYY"), ); assert.strictEqual(labelFn({ yLabel: 10.5 }), "10h 30m"); }); diff --git a/frontend/tests/unit/abilities/report-test.js b/frontend/tests/unit/abilities/report-test.js index f81fa9108..4644422aa 100644 --- a/frontend/tests/unit/abilities/report-test.js +++ b/frontend/tests/unit/abilities/report-test.js @@ -58,7 +58,7 @@ module("Unit | Ability | report", function (hooks) { "model", EmberObject.create({ projectAssignees: projectAssignee, - }) + }), ); assert.false(ability.canEdit); diff --git a/frontend/tests/unit/services/fetch-test.js b/frontend/tests/unit/services/fetch-test.js index 798c755d8..beb297b34 100644 --- a/frontend/tests/unit/services/fetch-test.js +++ b/frontend/tests/unit/services/fetch-test.js @@ -17,7 +17,7 @@ module("Unit | Service | fetch", function (hooks) { assert.strictEqual( service.get("headers.authorization"), - session.headers.authorization + session.headers.authorization, ); }); diff --git a/frontend/tests/unit/transforms/django-date-test.js b/frontend/tests/unit/transforms/django-date-test.js index 2ef2ce434..6ba6450e4 100644 --- a/frontend/tests/unit/transforms/django-date-test.js +++ b/frontend/tests/unit/transforms/django-date-test.js @@ -13,7 +13,7 @@ module("Unit | Transform | django date", function (hooks) { y: 2017, M: 2, // moments months are zerobased d: 11, - }) + }), ); assert.strictEqual(result, "2017-03-11"); diff --git a/frontend/tests/unit/transforms/django-duration-test.js b/frontend/tests/unit/transforms/django-duration-test.js index ee404129e..9fd9027b2 100644 --- a/frontend/tests/unit/transforms/django-duration-test.js +++ b/frontend/tests/unit/transforms/django-duration-test.js @@ -16,9 +16,9 @@ module("Unit | Transform | django duration", function (hooks) { hours: 1, minutes: 2, seconds: 3, - }) + }), ), - "01:02:03" + "01:02:03", ); assert.strictEqual( @@ -28,9 +28,9 @@ module("Unit | Transform | django duration", function (hooks) { hours: 2, minutes: 3, seconds: 4, - }) + }), ), - "1 02:03:04" + "1 02:03:04", ); assert.strictEqual( @@ -40,9 +40,9 @@ module("Unit | Transform | django duration", function (hooks) { minutes: 2, seconds: 3, milliseconds: 4, - }) + }), ), - "01:02:03.004000" + "01:02:03.004000", ); assert.strictEqual( @@ -53,9 +53,9 @@ module("Unit | Transform | django duration", function (hooks) { minutes: 3, seconds: 4, milliseconds: 5, - }) + }), ), - "1 02:03:04.005000" + "1 02:03:04.005000", ); assert.strictEqual( @@ -64,9 +64,9 @@ module("Unit | Transform | django duration", function (hooks) { hours: -1, minutes: -2, seconds: -3, - }) + }), ), - "-1 22:57:57" + "-1 22:57:57", ); assert.strictEqual( @@ -76,9 +76,9 @@ module("Unit | Transform | django duration", function (hooks) { hours: -1, minutes: -2, seconds: -3, - }) + }), ), - "-10 22:57:57" + "-10 22:57:57", ); }); diff --git a/frontend/tests/unit/transforms/django-time-test.js b/frontend/tests/unit/transforms/django-time-test.js index 46418014c..7621d1692 100644 --- a/frontend/tests/unit/transforms/django-time-test.js +++ b/frontend/tests/unit/transforms/django-time-test.js @@ -13,7 +13,7 @@ module("Unit | Transform | django time", function (hooks) { hour: 12, minute: 12, second: 12, - }) + }), ); assert.strictEqual(result, "12:12:12"); @@ -23,7 +23,7 @@ module("Unit | Transform | django time", function (hooks) { hour: 8, minute: 8, second: 8, - }) + }), ); assert.strictEqual(result2, "08:08:08"); diff --git a/frontend/tests/unit/users/edit/credits/absence-credits/edit/controller-test.js b/frontend/tests/unit/users/edit/credits/absence-credits/edit/controller-test.js index 75cce1d97..e59c5ef7c 100644 --- a/frontend/tests/unit/users/edit/credits/absence-credits/edit/controller-test.js +++ b/frontend/tests/unit/users/edit/credits/absence-credits/edit/controller-test.js @@ -8,9 +8,9 @@ module( test("exists", function (assert) { const controller = this.owner.lookup( - "controller:users/edit/credits/absence-credits/edit" + "controller:users/edit/credits/absence-credits/edit", ); assert.ok(controller); }); - } + }, ); diff --git a/frontend/tests/unit/users/edit/credits/absence-credits/edit/route-test.js b/frontend/tests/unit/users/edit/credits/absence-credits/edit/route-test.js index 2b174fe40..43c9119d6 100644 --- a/frontend/tests/unit/users/edit/credits/absence-credits/edit/route-test.js +++ b/frontend/tests/unit/users/edit/credits/absence-credits/edit/route-test.js @@ -8,9 +8,9 @@ module( test("exists", function (assert) { const route = this.owner.lookup( - "route:users/edit/credits/absence-credits/edit" + "route:users/edit/credits/absence-credits/edit", ); assert.ok(route); }); - } + }, ); diff --git a/frontend/tests/unit/users/edit/credits/absence-credits/new/route-test.js b/frontend/tests/unit/users/edit/credits/absence-credits/new/route-test.js index 2058c4b8c..117c9c360 100644 --- a/frontend/tests/unit/users/edit/credits/absence-credits/new/route-test.js +++ b/frontend/tests/unit/users/edit/credits/absence-credits/new/route-test.js @@ -8,9 +8,9 @@ module( test("exists", function (assert) { const route = this.owner.lookup( - "route:users/edit/credits/absence-credits/new" + "route:users/edit/credits/absence-credits/new", ); assert.ok(route); }); - } + }, ); diff --git a/frontend/tests/unit/users/edit/credits/overtime-credits/edit/controller-test.js b/frontend/tests/unit/users/edit/credits/overtime-credits/edit/controller-test.js index e19f34fd2..9bbe5e6b7 100644 --- a/frontend/tests/unit/users/edit/credits/overtime-credits/edit/controller-test.js +++ b/frontend/tests/unit/users/edit/credits/overtime-credits/edit/controller-test.js @@ -8,9 +8,9 @@ module( test("exists", function (assert) { const controller = this.owner.lookup( - "controller:users/edit/credits/overtime-credits/edit" + "controller:users/edit/credits/overtime-credits/edit", ); assert.ok(controller); }); - } + }, ); diff --git a/frontend/tests/unit/users/edit/credits/overtime-credits/edit/route-test.js b/frontend/tests/unit/users/edit/credits/overtime-credits/edit/route-test.js index c6eb3df79..0d4e11950 100644 --- a/frontend/tests/unit/users/edit/credits/overtime-credits/edit/route-test.js +++ b/frontend/tests/unit/users/edit/credits/overtime-credits/edit/route-test.js @@ -8,9 +8,9 @@ module( test("exists", function (assert) { const route = this.owner.lookup( - "route:users/edit/credits/overtime-credits/edit" + "route:users/edit/credits/overtime-credits/edit", ); assert.ok(route); }); - } + }, ); diff --git a/frontend/tests/unit/users/edit/credits/overtime-credits/new/route-test.js b/frontend/tests/unit/users/edit/credits/overtime-credits/new/route-test.js index 63b89d384..7f15f9691 100644 --- a/frontend/tests/unit/users/edit/credits/overtime-credits/new/route-test.js +++ b/frontend/tests/unit/users/edit/credits/overtime-credits/new/route-test.js @@ -8,9 +8,9 @@ module( test("exists", function (assert) { const route = this.owner.lookup( - "route:users/edit/credits/overtime-credits/edit" + "route:users/edit/credits/overtime-credits/edit", ); assert.ok(route); }); - } + }, ); diff --git a/frontend/tests/unit/users/edit/responsibilities/controller-test.js b/frontend/tests/unit/users/edit/responsibilities/controller-test.js index a3a628441..ae6cc1c04 100644 --- a/frontend/tests/unit/users/edit/responsibilities/controller-test.js +++ b/frontend/tests/unit/users/edit/responsibilities/controller-test.js @@ -6,7 +6,7 @@ module("Unit | Controller | users/edit/responsibilities", function (hooks) { test("exists", function (assert) { const controller = this.owner.lookup( - "controller:users/edit/responsibilities" + "controller:users/edit/responsibilities", ); assert.ok(controller); }); diff --git a/frontend/tests/unit/utils/humanize-duration-test.js b/frontend/tests/unit/utils/humanize-duration-test.js index e09dff595..3a07d229d 100644 --- a/frontend/tests/unit/utils/humanize-duration-test.js +++ b/frontend/tests/unit/utils/humanize-duration-test.js @@ -63,7 +63,7 @@ module("Unit | Utility | humanize duration", function () { test("works with negative durations", function (assert) { const result = humanizeDuration( - moment.duration({ hours: -4, minutes: -30 }) + moment.duration({ hours: -4, minutes: -30 }), ); assert.strictEqual(result, "-4h 30m"); diff --git a/frontend/tests/unit/utils/parse-django-duration-test.js b/frontend/tests/unit/utils/parse-django-duration-test.js index 9305caf60..f34983f42 100644 --- a/frontend/tests/unit/utils/parse-django-duration-test.js +++ b/frontend/tests/unit/utils/parse-django-duration-test.js @@ -15,7 +15,7 @@ module("Unit | Utility | parse django duration", function () { minutes: 2, seconds: 3, }) - .asMilliseconds() + .asMilliseconds(), ); assert.strictEqual( @@ -27,7 +27,7 @@ module("Unit | Utility | parse django duration", function () { minutes: 3, seconds: 4, }) - .asMilliseconds() + .asMilliseconds(), ); assert.strictEqual( @@ -39,7 +39,7 @@ module("Unit | Utility | parse django duration", function () { seconds: 3, milliseconds: 4, }) - .asMilliseconds() + .asMilliseconds(), ); assert.strictEqual( @@ -52,7 +52,7 @@ module("Unit | Utility | parse django duration", function () { seconds: 4, milliseconds: 5, }) - .asMilliseconds() + .asMilliseconds(), ); assert.strictEqual( @@ -63,7 +63,7 @@ module("Unit | Utility | parse django duration", function () { minutes: -2, seconds: -3, }) - .asMilliseconds() + .asMilliseconds(), ); assert.strictEqual( @@ -75,7 +75,7 @@ module("Unit | Utility | parse django duration", function () { minutes: -2, seconds: -3, }) - .asMilliseconds() + .asMilliseconds(), ); }); }); diff --git a/frontend/tests/unit/utils/parse-filename-test.js b/frontend/tests/unit/utils/parse-filename-test.js index 5f9dbad88..4ba063891 100644 --- a/frontend/tests/unit/utils/parse-filename-test.js +++ b/frontend/tests/unit/utils/parse-filename-test.js @@ -4,7 +4,7 @@ import parseFileName from "timed/utils/parse-filename"; module("Unit | Helper | parse filename", function () { test("works with double quotes", function (assert) { const result = parseFileName( - 'attachment; filename="1805-20240710-Customer-Sample_Project.ods"' + 'attachment; filename="1805-20240710-Customer-Sample_Project.ods"', ); assert.strictEqual(result, "1805-20240710-Customer-Sample_Project.ods"); @@ -12,7 +12,7 @@ module("Unit | Helper | parse filename", function () { test("works with single quotes", function (assert) { const result = parseFileName( - "attachment; filename='1805-20240710-Customer-Sample_Project.ods'" + "attachment; filename='1805-20240710-Customer-Sample_Project.ods'", ); assert.strictEqual(result, "1805-20240710-Customer-Sample_Project.ods"); @@ -20,7 +20,7 @@ module("Unit | Helper | parse filename", function () { test("works without quotes", function (assert) { const result = parseFileName( - "attachment; filename=1805-20240710-Customer-Sample_Project.ods" + "attachment; filename=1805-20240710-Customer-Sample_Project.ods", ); assert.strictEqual(result, "1805-20240710-Customer-Sample_Project.ods"); diff --git a/frontend/tests/unit/validators/moment-test.js b/frontend/tests/unit/validators/moment-test.js index 2d8685b6c..c78366e66 100644 --- a/frontend/tests/unit/validators/moment-test.js +++ b/frontend/tests/unit/validators/moment-test.js @@ -6,7 +6,7 @@ module("Unit | Validator | moment", function () { test("works without value", function (assert) { assert.strictEqual( validateMoment()("key", null, null, {}, {}), - "The given value is not a valid value" + "The given value is not a valid value", ); assert.true(validateMoment()("key", moment(), null, {}, {})); }); @@ -18,8 +18,8 @@ module("Unit | Validator | moment", function () { moment(), null, {}, - { otherKey: moment().add(-1, "second") } - ) + { otherKey: moment().add(-1, "second") }, + ), ); assert.strictEqual( @@ -28,9 +28,9 @@ module("Unit | Validator | moment", function () { moment(), null, {}, - { otherKey: moment().add(1, "second") } + { otherKey: moment().add(1, "second") }, ), - "The value is smaller than otherKey" + "The value is smaller than otherKey", ); }); @@ -41,8 +41,8 @@ module("Unit | Validator | moment", function () { moment(), null, {}, - { otherKey: moment().add(1, "second") } - ) + { otherKey: moment().add(1, "second") }, + ), ); assert.strictEqual( @@ -51,9 +51,9 @@ module("Unit | Validator | moment", function () { moment(), null, {}, - { otherKey: moment().add(-1, "second") } + { otherKey: moment().add(-1, "second") }, ), - "The valus is larger than otherKey" + "The valus is larger than otherKey", ); }); @@ -67,8 +67,8 @@ module("Unit | Validator | moment", function () { { gtKey: moment().add(-1, "second"), ltKey: moment().add(1, "second"), - } - ) + }, + ), ); }); @@ -82,8 +82,8 @@ module("Unit | Validator | moment", function () { gtKey: moment().add(-1, "second"), ltKey: moment().add(1, "second"), }, - {} - ) + {}, + ), ); }); @@ -98,8 +98,8 @@ module("Unit | Validator | moment", function () { }, { gtKey: moment().add(1, "second"), - } - ) + }, + ), ); }); });