mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808)
Co-Authored-By: Bianca Nenciu <nbianca@users.noreply.github.com> Co-Authored-By: David Taylor <david@taylorhq.com>
This commit is contained in:
@ -16,7 +16,7 @@ widgetTest("basics", {
|
||||
});
|
||||
|
||||
widgetTest("log out", {
|
||||
template: '{{mount-widget widget="user-menu" logout="logout"}}',
|
||||
template: '{{mount-widget widget="user-menu" logout=(action "logout")}}',
|
||||
|
||||
beforeEach() {
|
||||
this.on("logout", () => (this.loggedOut = true));
|
||||
@ -54,7 +54,7 @@ widgetTest("private messages - enabled", {
|
||||
|
||||
widgetTest("anonymous", {
|
||||
template:
|
||||
'{{mount-widget widget="user-menu" toggleAnonymous="toggleAnonymous"}}',
|
||||
'{{mount-widget widget="user-menu" toggleAnonymous=(action "toggleAnonymous")}}',
|
||||
|
||||
beforeEach() {
|
||||
this.currentUser.setProperties({ is_anonymous: false, trust_level: 3 });
|
||||
@ -85,7 +85,7 @@ widgetTest("anonymous - disabled", {
|
||||
|
||||
widgetTest("anonymous - switch back", {
|
||||
template:
|
||||
'{{mount-widget widget="user-menu" toggleAnonymous="toggleAnonymous"}}',
|
||||
'{{mount-widget widget="user-menu" toggleAnonymous=(action "toggleAnonymous")}}',
|
||||
|
||||
beforeEach() {
|
||||
this.currentUser.setProperties({ is_anonymous: true });
|
||||
|
Reference in New Issue
Block a user