mirror of
https://github.com/discourse/discourse.git
synced 2025-04-11 13:01:40 +08:00
DEV: Rename variable to match coding style.
This commit is contained in:
parent
1b6f18396b
commit
3c65c3398a
@ -874,13 +874,13 @@ widgetTest("pm map", {
|
|||||||
widgetTest("post notice - with username", {
|
widgetTest("post notice - with username", {
|
||||||
template: '{{mount-widget widget="post" args=args}}',
|
template: '{{mount-widget widget="post" args=args}}',
|
||||||
beforeEach() {
|
beforeEach() {
|
||||||
const date_2d_ago = new Date();
|
const twoDaysAgo = new Date();
|
||||||
date_2d_ago.setDate(date_2d_ago.getDate() - 2);
|
twoDaysAgo.setDate(twoDaysAgo.getDate() - 2);
|
||||||
this.siteSettings.prioritize_username_in_ux = true;
|
this.siteSettings.prioritize_username_in_ux = true;
|
||||||
this.siteSettings.old_post_notice_days = 14;
|
this.siteSettings.old_post_notice_days = 14;
|
||||||
this.set("args", {
|
this.set("args", {
|
||||||
postNoticeType: "returning",
|
postNoticeType: "returning",
|
||||||
postNoticeTime: date_2d_ago,
|
postNoticeTime: twoDaysAgo,
|
||||||
username: "codinghorror",
|
username: "codinghorror",
|
||||||
name: "Jeff",
|
name: "Jeff",
|
||||||
created_at: new Date()
|
created_at: new Date()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user