DEV: Fix linting issues in core plugins (#14916)

This commit is contained in:
Jarek Radosz
2021-11-13 15:31:42 +01:00
committed by GitHub
parent f414d5eace
commit 906a71a607
14 changed files with 21 additions and 14 deletions

View File

@ -12,6 +12,7 @@ import loadScript from "discourse/lib/load-script";
import { notEmpty } from "@ember/object/computed";
import { propertyNotEqual } from "discourse/lib/computed";
import { schedule } from "@ember/runloop";
import { getOwner } from "discourse-common/lib/get-owner";
export default Component.extend({
timeFormat: "HH:mm:ss",
@ -435,7 +436,7 @@ export default Component.extend({
},
_closeModal() {
const composer = Discourse.__container__.lookup("controller:composer");
const composer = getOwner(this).lookup("controller:composer");
composer.send("closeModal");
},
});

View File

@ -1,5 +1,6 @@
import { acceptance, queryAll } from "discourse/tests/helpers/qunit-helpers";
import { test } from "qunit";
import { click, fillIn, visit } from "@ember/test-helpers";
acceptance("Local Dates - composer", function (needs) {
needs.user();

View File

@ -1,7 +1,7 @@
import I18n from "I18n";
import LocalDateBuilder from "./local-date-builder";
import sinon from "sinon";
import { module, test } from "qunit";
import QUnit, { module, test } from "qunit";
const UTC = "Etc/UTC";
const SYDNEY = "Australia/Sydney";