DEV: Add theme name prefix to test names (#57)

This commit is contained in:
Jarek Radosz 2024-06-04 21:44:42 +02:00 committed by GitHub
parent 4cc2a57c21
commit fcb3af9c9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 20 deletions

View File

@ -1,25 +1,28 @@
import { module, test } from "qunit";
import migrate from "../../../../migrations/settings/0001-rename-settings";
module("Unit | Migrations | Settings | 0001-rename-settings", function () {
test("migrate", function (assert) {
const settings = new Map(
Object.entries({
Custom_header_links: "some,links",
})
);
module(
"Custom Header Links | Unit | Migrations | Settings | 0001-rename-settings",
function () {
test("migrate", function (assert) {
const settings = new Map(
Object.entries({
Custom_header_links: "some,links",
})
);
const result = migrate(settings);
const result = migrate(settings);
assert.deepEqual(
Array.from(result),
Array.from(
new Map(
Object.entries({
custom_header_links: "some,links",
})
assert.deepEqual(
Array.from(result),
Array.from(
new Map(
Object.entries({
custom_header_links: "some,links",
})
)
)
)
);
});
});
);
});
}
);

View File

@ -2,7 +2,7 @@ import { module, test } from "qunit";
import migrate from "../../../../migrations/settings/0002-migrate-custom-header-links";
module(
"Unit | Migrations | Settings | 0002-migrate-custom-header-links",
"Custom Header Links | Migrations | Settings | 0002-migrate-custom-header-links",
function () {
test("migrate when value of setting is already an array", function (assert) {
const settings = new Map(