Alan Guo Xiang Tan 5006125483
DEV: Rename Custom_header_links settings to custom_header_links (#45)
Why this change?

Using uppercase in settings name is not part of our convention so
renaming it here.
2024-01-26 10:15:41 +08:00

26 lines
586 B
JavaScript

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",
})
);
const result = migrate(settings);
assert.deepEqual(
Array.from(result),
Array.from(
new Map(
Object.entries({
custom_header_links: "some,links",
})
)
)
);
});
});