Merge pull request #528 from glowing-bear/add-filter-tests

Add some basic tests for filters
This commit is contained in:
David Cormier 2015-01-24 12:32:46 -05:00
commit e56acbc923
4 changed files with 74 additions and 2 deletions

View file

@ -3,7 +3,10 @@
var weechat = angular.module('weechat', ['ngRoute', 'localStorage', 'weechatModels', 'plugins', 'IrcUtils', 'ngSanitize', 'ngWebsockets', 'ngTouch']);
weechat.config(['$compileProvider', function ($compileProvider) {
$compileProvider.debugInfoEnabled(false);
// hack to determine whether we're executing the tests
if (typeof(it) === "undefined" && typeof(describe) === "undefined") {
$compileProvider.debugInfoEnabled(false);
}
}]);
weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', '$log', 'models', 'connection', 'notifications', 'utils', function ($rootScope, $scope, $store, $timeout, $log, models, connection, notifications, utils) {