Moved a bunch of tests to QUnit. Added basic Discourse.Site support to test suite.

This commit is contained in:
Robin Ward
2013-06-17 11:38:30 -04:00
parent 2174c0d661
commit 797b99db7c
14 changed files with 112 additions and 259 deletions

View File

@@ -18,8 +18,7 @@ Discourse.Presence = Em.Mixin.create({
@return {Boolean}
*/
blank: function(name) {
var prop;
prop = this[name] || this.get(name);
var prop = this[name] || this.get(name);
if (!prop) return true;
switch (typeof prop) {