From fcb3af9c9fe7c476a65f7a1db6c00ac40a40409a Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Tue, 4 Jun 2024 21:44:42 +0200 Subject: [PATCH] DEV: Add theme name prefix to test names (#57) --- .../settings/0001-rename-settings-test.js | 41 ++++++++++--------- .../0002-migrate-custom-header-links-test.js | 2 +- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/test/unit/migrations/settings/0001-rename-settings-test.js b/test/unit/migrations/settings/0001-rename-settings-test.js index 4572b11..1e07163 100644 --- a/test/unit/migrations/settings/0001-rename-settings-test.js +++ b/test/unit/migrations/settings/0001-rename-settings-test.js @@ -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", + }) + ) ) - ) - ); - }); -}); + ); + }); + } +); diff --git a/test/unit/migrations/settings/0002-migrate-custom-header-links-test.js b/test/unit/migrations/settings/0002-migrate-custom-header-links-test.js index ac71c72..8573f23 100644 --- a/test/unit/migrations/settings/0002-migrate-custom-header-links-test.js +++ b/test/unit/migrations/settings/0002-migrate-custom-header-links-test.js @@ -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(