This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/unit/models/group-test.js
2021-11-08 10:26:28 +01:00

23 lines
534 B
JavaScript

import { module, test } from "qunit";
import Group from "discourse/models/group";
module("Unit | Model | group", function () {
test("displayName", function (assert) {
const group = Group.create({ name: "test", display_name: "donkey" });
assert.strictEqual(
group.get("displayName"),
"donkey",
"it should return the display name"
);
group.set("display_name", null);
assert.strictEqual(
group.get("displayName"),
"test",
"it should return the group's name"
);
});
});