mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Upgrade QUnit to latest version
This commit is contained in:
@ -4,7 +4,7 @@ moduleForWidget('poster-name');
|
||||
|
||||
widgetTest('basic rendering', {
|
||||
template: '{{mount-widget widget="poster-name" args=args}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.set('args', {
|
||||
username: 'eviltrout',
|
||||
usernameUrl: '/u/eviltrout',
|
||||
@ -23,7 +23,7 @@ widgetTest('basic rendering', {
|
||||
|
||||
widgetTest('extra classes and glyphs', {
|
||||
template: '{{mount-widget widget="poster-name" args=args}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.set('args', {
|
||||
username: 'eviltrout',
|
||||
usernameUrl: '/u/eviltrout',
|
||||
@ -46,7 +46,7 @@ widgetTest('extra classes and glyphs', {
|
||||
|
||||
widgetTest('disable display name on posts', {
|
||||
template: '{{mount-widget widget="poster-name" args=args}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.siteSettings.display_name_on_posts = false;
|
||||
this.set('args', { username: 'eviltrout', name: 'Robin Ward' });
|
||||
},
|
||||
@ -57,7 +57,7 @@ widgetTest('disable display name on posts', {
|
||||
|
||||
widgetTest("doesn't render a name if it's similar to the username", {
|
||||
template: '{{mount-widget widget="poster-name" args=args}}',
|
||||
setup() {
|
||||
beforeEach() {
|
||||
this.siteSettings.prioritize_username_in_ux = true;
|
||||
this.siteSettings.display_name_on_posts = true;
|
||||
this.set('args', { username: 'eviltrout', name: 'evil-trout' });
|
||||
|
Reference in New Issue
Block a user