mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 13:21:01 +08:00
REFACTOR: support booting discourse with DISCOURSE_NO_CONSTANTS
This change is discussed here: https://meta.discourse.org/t/deprecating-es6-compatibility-layer/35821 Prior to this change we were not booting correctly with DISCOURSE_NO_CONSTANTS
This commit is contained in:
@ -1,9 +1,10 @@
|
||||
import { blank } from 'helpers/qunit-helpers';
|
||||
import Report from 'admin/models/report';
|
||||
|
||||
module("Discourse.Report");
|
||||
module("Report");
|
||||
|
||||
function reportWithData(data) {
|
||||
return Discourse.Report.create({
|
||||
return Report.create({
|
||||
type: 'topics',
|
||||
data: _.map(data, function(val, index) {
|
||||
return { x: moment().subtract(index, "days").format('YYYY-MM-DD'), y: val };
|
||||
|
Reference in New Issue
Block a user