Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import LoadMore from "discourse/components/load-more";
import PluginOutlet from "discourse/components/plugin-outlet";
import lazyHash from "discourse/helpers/lazy-hash";
import { i18n } from "discourse-i18n";
import DocsCategory from "../components/docs-category";
import DocsTag from "../components/docs-tag";
import DocsTopic from "../components/docs-topic";
import DocsCategory from "../../components/docs-category";
import DocsTag from "../../components/docs-tag";
import DocsTopic from "../../components/docs-topic";

export default RouteTemplate(
<template>
Expand Down
8 changes: 4 additions & 4 deletions test/javascripts/unit/controllers/docs-index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ module("Unit | Controller | docs-index", function (hooks) {
const siteSettings = getOwner(this).lookup("service:site-settings");
siteSettings.docs_categories = "1|2|3|333|999";

const controller = getOwner(this).lookup("controller:docs-index");
const controller = getOwner(this).lookup("controller:docs.index");
assert.deepEqual(controller.docsCategories, ["bug", "feature", "meta"]);
});

test("updateSelectedTags correctly removes tags", function (assert) {
const controller = getOwner(this).lookup("controller:docs-index");
const controller = getOwner(this).lookup("controller:docs.index");
controller.filterTags = "foo|bar|baz";

controller.updateSelectedTags({ id: "bar" });
Expand All @@ -23,7 +23,7 @@ module("Unit | Controller | docs-index", function (hooks) {
});

test("updateSelectedTags correctly appends tags to list", function (assert) {
const controller = getOwner(this).lookup("controller:docs-index");
const controller = getOwner(this).lookup("controller:docs.index");
controller.filterTags = "foo|bar";

controller.updateSelectedTags({ id: "baz" });
Expand All @@ -32,7 +32,7 @@ module("Unit | Controller | docs-index", function (hooks) {
});

test("updateSelectedTags correctly appends tags to empty list", function (assert) {
const controller = getOwner(this).lookup("controller:docs-index");
const controller = getOwner(this).lookup("controller:docs.index");
controller.filterTags = null;

controller.updateSelectedTags({ id: "foo" });
Expand Down