mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Revert "Revert "REFACTOR: support booting discourse with DISCOURSE_NO_CONSTANTS""
This reverts commit c21457d6a7a369fb52dfd3cd01b3882055c85d62.
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