DEV: Add theme name prefix to test names (#57)
This commit is contained in:
parent
4cc2a57c21
commit
fcb3af9c9f
|
@ -1,25 +1,28 @@
|
||||||
import { module, test } from "qunit";
|
import { module, test } from "qunit";
|
||||||
import migrate from "../../../../migrations/settings/0001-rename-settings";
|
import migrate from "../../../../migrations/settings/0001-rename-settings";
|
||||||
|
|
||||||
module("Unit | Migrations | Settings | 0001-rename-settings", function () {
|
module(
|
||||||
test("migrate", function (assert) {
|
"Custom Header Links | Unit | Migrations | Settings | 0001-rename-settings",
|
||||||
const settings = new Map(
|
function () {
|
||||||
Object.entries({
|
test("migrate", function (assert) {
|
||||||
Custom_header_links: "some,links",
|
const settings = new Map(
|
||||||
})
|
Object.entries({
|
||||||
);
|
Custom_header_links: "some,links",
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
const result = migrate(settings);
|
const result = migrate(settings);
|
||||||
|
|
||||||
assert.deepEqual(
|
assert.deepEqual(
|
||||||
Array.from(result),
|
Array.from(result),
|
||||||
Array.from(
|
Array.from(
|
||||||
new Map(
|
new Map(
|
||||||
Object.entries({
|
Object.entries({
|
||||||
custom_header_links: "some,links",
|
custom_header_links: "some,links",
|
||||||
})
|
})
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
);
|
||||||
);
|
});
|
||||||
});
|
}
|
||||||
});
|
);
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { module, test } from "qunit";
|
||||||
import migrate from "../../../../migrations/settings/0002-migrate-custom-header-links";
|
import migrate from "../../../../migrations/settings/0002-migrate-custom-header-links";
|
||||||
|
|
||||||
module(
|
module(
|
||||||
"Unit | Migrations | Settings | 0002-migrate-custom-header-links",
|
"Custom Header Links | Migrations | Settings | 0002-migrate-custom-header-links",
|
||||||
function () {
|
function () {
|
||||||
test("migrate when value of setting is already an array", function (assert) {
|
test("migrate when value of setting is already an array", function (assert) {
|
||||||
const settings = new Map(
|
const settings = new Map(
|
||||||
|
|
Loading…
Reference in New Issue