Remove ObjectController, Discouse Controllers + Presence
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { blank } from 'helpers/qunit-helpers';
|
||||
import { currentUser } from 'helpers/qunit-helpers';
|
||||
|
||||
module("model:composer");
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
import Presence from 'discourse/mixins/presence';
|
||||
import Model from 'discourse/models/model';
|
||||
|
||||
module("Discourse.Model");
|
||||
|
||||
test("mixes in Presence", function() {
|
||||
ok(Presence.detect(Model.create()));
|
||||
});
|
||||
module("model:discourse");
|
||||
|
||||
test("extractByKey: converts a list of hashes into a hash of instances of specified class, indexed by their ids", function() {
|
||||
var firstObject = {id: "id_1", foo: "foo_1"};
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { blank, present } from 'helpers/qunit-helpers';
|
||||
module("model:post-stream");
|
||||
|
||||
import createStore from 'helpers/create-store';
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { present, blank } from 'helpers/qunit-helpers';
|
||||
|
||||
module("Discourse.Post");
|
||||
|
||||
var buildPost = function(args) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { blank } from 'helpers/qunit-helpers';
|
||||
|
||||
module("Discourse.Report");
|
||||
|
||||
function reportWithData(data) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { blank, present } from 'helpers/qunit-helpers';
|
||||
|
||||
module("Discourse.Site");
|
||||
|
||||
test('create', function() {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { present } from 'helpers/qunit-helpers';
|
||||
module("model:topic-details");
|
||||
|
||||
import Topic from 'discourse/models/topic';
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { blank, present } from 'helpers/qunit-helpers';
|
||||
module("model:topic");
|
||||
|
||||
import Topic from 'discourse/models/topic';
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
module("Discourse.User");
|
||||
import { blank, present } from 'helpers/qunit-helpers';
|
||||
|
||||
module("Discourse.UserStream");
|
||||
|
||||
test('basics', function(){
|
||||
var user = Discourse.User.create({id: 1, username: 'eviltrout'});
|
||||
|
||||
Reference in New Issue
Block a user