зеркало из https://github.com/mozilla/treeherder.git
fixed unit tests
This commit is contained in:
Родитель
aa0fd608e5
Коммит
bd93362651
|
@ -7,7 +7,9 @@ module.exports = function (config) {
|
|||
files: [
|
||||
'app/vendor/angular/angular.js',
|
||||
'app/vendor/angular/angular-*.js',
|
||||
'app/vendor/jquery-2.0.3.js',
|
||||
'app/vendor/ui-bootstrap-*.js',
|
||||
'app/vendor/jquery-*.js',
|
||||
'app/vendor/bootstrap*.js',
|
||||
'app/vendor/*.js',
|
||||
'app/js/**/*.js',
|
||||
'app/js/controllers/**/*.js',
|
||||
|
|
|
@ -7,7 +7,7 @@ describe('JobsCtrl', function(){
|
|||
|
||||
beforeEach(module('treeherder'));
|
||||
|
||||
beforeEach(inject(function ($injector, $rootScope, $controller) {
|
||||
beforeEach(inject(function ($injector, $rootScope, $controller, thUrl) {
|
||||
|
||||
$httpBackend = $injector.get('$httpBackend');
|
||||
jasmine.getJSONFixtures().fixturesPath='base/test/mock';
|
||||
|
|
|
@ -38,7 +38,7 @@ treeherder.factory('thResultSets',
|
|||
|
||||
// get the resultsets for this repo
|
||||
return {
|
||||
getResultSets: function(offset=0, count=10) {
|
||||
getResultSets: function(offset, count) {
|
||||
// the default notation above only works in some browsers (firefox)
|
||||
offset = typeof offset == 'undefined'? 0: offset;
|
||||
count = typeof count == 'undefined'? 10: count;
|
||||
|
|
Загрузка…
Ссылка в новой задаче