Fix unit tests issues
This commit is contained in:
parent
86c9cc76d7
commit
a55d2fd5f4
@ -19,7 +19,7 @@ describe('In Table module', function () {
|
||||
var cells = ['host', 'service_check', 'duration', 'last_check'];
|
||||
|
||||
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);
|
||||
$httpBackend.expectGET('components/table/cell_' + cell + '/cell_' + cell + '.html').respond('');
|
||||
$httpBackend.flush();
|
||||
@ -30,7 +30,7 @@ describe('In Table module', function () {
|
||||
describe('adgTable directive', 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);
|
||||
$httpBackend.expectGET('components/table/table.html').respond('');
|
||||
$httpBackend.flush();
|
||||
|
@ -6,6 +6,7 @@ module.exports = function (config) {
|
||||
basePath : './',
|
||||
|
||||
files : [
|
||||
'app/bower_components/jquery/dist/jquery.min.js',
|
||||
'app/bower_components/angular/angular.js',
|
||||
'app/bower_components/angular-route/angular-route.js',
|
||||
'app/bower_components/angular-mocks/angular-mocks.js',
|
||||
|
Loading…
Reference in New Issue
Block a user