mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove ObjectController, Discouse Controllers + Presence
This commit is contained in:
@@ -8,14 +8,6 @@ function count(selector) {
|
||||
return find(selector).length;
|
||||
}
|
||||
|
||||
function present(obj, text) {
|
||||
ok(!Ember.isEmpty(obj), text);
|
||||
}
|
||||
|
||||
function blank(obj, text) {
|
||||
ok(Ember.isEmpty(obj), text);
|
||||
}
|
||||
|
||||
function containsInstance(collection, klass, text) {
|
||||
ok(klass.detectInstance(_.first(collection)), text);
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { blank } from 'helpers/qunit-helpers';
|
||||
module("helper:custom-html");
|
||||
|
||||
import { getCustomHTML, setCustomHTML } from 'discourse/helpers/custom-html';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* global asyncTest */
|
||||
/* global asyncTest, fixtures */
|
||||
|
||||
import sessionFixtures from 'fixtures/session-fixtures';
|
||||
import siteFixtures from 'fixtures/site_fixtures';
|
||||
@@ -101,4 +101,19 @@ function fixture(selector) {
|
||||
return $("#qunit-fixture");
|
||||
}
|
||||
|
||||
export { acceptance, controllerFor, asyncTestDiscourse, fixture, logIn, currentUser };
|
||||
function present(obj, text) {
|
||||
ok(!Ember.isEmpty(obj), text);
|
||||
}
|
||||
|
||||
function blank(obj, text) {
|
||||
ok(Ember.isEmpty(obj), text);
|
||||
}
|
||||
|
||||
export { acceptance,
|
||||
controllerFor,
|
||||
asyncTestDiscourse,
|
||||
fixture,
|
||||
logIn,
|
||||
currentUser,
|
||||
blank,
|
||||
present };
|
||||
|
||||
Reference in New Issue
Block a user