mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Upgrade QUnit to latest version
This commit is contained in:
parent
8ae445766f
commit
cc525b1a8d
145 changed files with 7569 additions and 6763 deletions
|
@ -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' });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue