ES6 module migrations

This commit is contained in:
Robin Ward
2015-04-08 14:17:21 -04:00
parent 22ffcba8e6
commit a83a19f6ce
27 changed files with 109 additions and 124 deletions

View File

@ -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() {