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,4 +1,5 @@
|
||||
import createStore from 'helpers/create-store';
|
||||
import AdminUser from 'admin/models/admin-user';
|
||||
|
||||
var buildPost = function(args) {
|
||||
return Discourse.Post.create(_.merge({
|
||||
@@ -9,7 +10,7 @@ var buildPost = function(args) {
|
||||
};
|
||||
|
||||
var buildAdminUser = function(args) {
|
||||
return Discourse.AdminUser.create(_.merge({
|
||||
return AdminUser.create(_.merge({
|
||||
id: 11,
|
||||
username: 'urist'
|
||||
}, args || {}));
|
||||
|
||||
Reference in New Issue
Block a user