Fix unit tests issues

This commit is contained in:
Frédéric Vachon 2015-02-20 15:14:58 -05:00
parent 86c9cc76d7
commit a55d2fd5f4
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ describe('In Table module', function () {
var cells = ['host', 'service_check', 'duration', 'last_check']; var cells = ['host', 'service_check', 'duration', 'last_check'];
angular.forEach(cells, function (cell) { angular.forEach(cells, function (cell) {
var elem = angular.element('<adg-cell type="' + cell + '"></adg-cell>'); var elem = angular.element('<td adg-cell cell-name="' + cell + '"></td>');
$compile(elem)($rootScope); $compile(elem)($rootScope);
$httpBackend.expectGET('components/table/cell_' + cell + '/cell_' + cell + '.html').respond(''); $httpBackend.expectGET('components/table/cell_' + cell + '/cell_' + cell + '.html').respond('');
$httpBackend.flush(); $httpBackend.flush();
@ -30,7 +30,7 @@ describe('In Table module', function () {
describe('adgTable directive', function () { describe('adgTable directive', function () {
it('should request table/table.html template', function () { it('should request table/table.html template', function () {
var elem = angular.element('<adg-table cells="host,service_check,duration,last_check" api-name="services"></adg-table>'); var elem = angular.element('<adg-table cells-name="host,service_check,duration,last_check" cells-text="Host,Service Check,Duration,Last check" api-name="services"></adg-table>');
$compile(elem)($rootScope); $compile(elem)($rootScope);
$httpBackend.expectGET('components/table/table.html').respond(''); $httpBackend.expectGET('components/table/table.html').respond('');
$httpBackend.flush(); $httpBackend.flush();

View File

@ -6,6 +6,7 @@ module.exports = function (config) {
basePath : './', basePath : './',
files : [ files : [
'app/bower_components/jquery/dist/jquery.min.js',
'app/bower_components/angular/angular.js', 'app/bower_components/angular/angular.js',
'app/bower_components/angular-route/angular-route.js', 'app/bower_components/angular-route/angular-route.js',
'app/bower_components/angular-mocks/angular-mocks.js', 'app/bower_components/angular-mocks/angular-mocks.js',