mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FEATURE: Claim Reviewables by Topic
This is a feature that used to be present in discourse-assign but is much easier to implement in core. It also allows a topic to be assigned without it claiming for review and vice versa and allows it to work with category group reviewers.
This commit is contained in:
@ -142,7 +142,7 @@ QUnit.test("destroyRecord when new", function(assert) {
|
||||
|
||||
QUnit.test("find embedded", function(assert) {
|
||||
const store = createStore();
|
||||
return store.find("fruit", 2).then(function(f) {
|
||||
return store.find("fruit", 1).then(function(f) {
|
||||
assert.ok(f.get("farmer"), "it has the embedded object");
|
||||
|
||||
const fruitCols = f.get("colors");
|
||||
@ -154,6 +154,14 @@ QUnit.test("find embedded", function(assert) {
|
||||
});
|
||||
});
|
||||
|
||||
QUnit.test("embedded records can be cleared", async assert => {
|
||||
const store = createStore();
|
||||
let f = await store.find("fruit", 4);
|
||||
f.set("farmer", { dummy: "object" });
|
||||
f = await store.find("fruit", 4);
|
||||
assert.ok(!f.get("farmer"));
|
||||
});
|
||||
|
||||
QUnit.test("meta types", function(assert) {
|
||||
const store = createStore();
|
||||
return store.find("barn", 1).then(function(f) {
|
||||
|
Reference in New Issue
Block a user