mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 08:51:05 +08:00
ES6 module migrations
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import Presence from 'discourse/mixins/presence';
|
||||
|
||||
var SomeViewClass = Ember.View.extend();
|
||||
|
||||
function containerHasOnlyOneChild(containerView, klass) {
|
||||
@ -17,9 +19,9 @@ function childHasProperty(containerView, name) {
|
||||
|
||||
moduleFor("view:container");
|
||||
|
||||
test("mixes in Discourse.Presence", function() {
|
||||
test("mixes in Presence", function() {
|
||||
var containerView = this.subject();
|
||||
ok(Discourse.Presence.detect(containerView));
|
||||
ok(Presence.detect(containerView));
|
||||
});
|
||||
|
||||
test("attachViewWithArgs: creates a view of a given class with given properties and appends it to the container", function() {
|
||||
|
Reference in New Issue
Block a user