Skip to content

Commit

Permalink
DEV: Add theme name prefix to test names (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX authored Jun 4, 2024
1 parent 4cc2a57 commit fcb3af9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
41 changes: 22 additions & 19 deletions test/unit/migrations/settings/0001-rename-settings-test.js
Original file line number Diff line number Diff line change
@@ -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",
})
)
)
)
);
});
});
);
});
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit fcb3af9

Please sign in to comment.