mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
DEV: introduces prettier for es6 files
This commit is contained in:
@ -8,21 +8,24 @@ QUnit.test("displayEdit", function(assert) {
|
||||
});
|
||||
|
||||
assert.equal(
|
||||
HistoryController.get("displayEdit"), false,
|
||||
HistoryController.get("displayEdit"),
|
||||
false,
|
||||
"it should not display edit button when user cannot edit the post"
|
||||
);
|
||||
|
||||
HistoryController.set("model.can_edit", true);
|
||||
|
||||
assert.equal(
|
||||
HistoryController.get("displayEdit"), true,
|
||||
HistoryController.get("displayEdit"),
|
||||
true,
|
||||
"it should display edit button when user can edit the post"
|
||||
);
|
||||
|
||||
HistoryController.set("model.current_revision", 2);
|
||||
|
||||
assert.equal(
|
||||
HistoryController.get("displayEdit"), false,
|
||||
HistoryController.get("displayEdit"),
|
||||
false,
|
||||
"it should only display the edit button on the latest revision"
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user