mirror of
https://github.com/discourse/discourse-custom-header-links.git
synced 2025-03-07 02:19:05 +00:00
29 lines
652 B
JavaScript
29 lines
652 B
JavaScript
import { module, test } from "qunit";
|
|
import migrate from "../../../../migrations/settings/0001-rename-settings";
|
|
|
|
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);
|
|
|
|
assert.deepEqual(
|
|
Array.from(result),
|
|
Array.from(
|
|
new Map(
|
|
Object.entries({
|
|
custom_header_links: "some,links",
|
|
})
|
|
)
|
|
)
|
|
);
|
|
});
|
|
}
|
|
);
|