diff --git a/www/console_view/src/module/view/change-row/changerow.directive.spec.coffee b/www/console_view/src/module/view/change-row/changerow.directive.spec.coffee index 05473c276f3..763f6ff6fd7 100644 --- a/www/console_view/src/module/view/change-row/changerow.directive.spec.coffee +++ b/www/console_view/src/module/view/change-row/changerow.directive.spec.coffee @@ -27,36 +27,3 @@ describe 'Change row directive controller', -> controllerData = element.isolateScope().cr beforeEach(inject(injected)) - - - it 'should create a correct github link', -> - $scope.change = - builds: [] - repository: 'https://github.com/buildbot/buildbot.git' - revision: 'a55049bc2e1320e5c4c8dba11e09079e8005668f' - $scope.$digest() - expect(controllerData.change.link).toBe('https://github.com/buildbot/buildbot/commit/a55049bc2e1320e5c4c8dba11e09079e8005668f') - - it 'should create correct github file links', -> - $scope.change = - builds: [] - repository: 'https://github.com/buildbot/buildbot.git' - revision: 'a55049bc2e1320e5c4c8dba11e09079e8005668f' - files = [ - 'master/contrib/github_buildbot.py' - 'master/docs/developer/mq.rst' - ] - $scope.$digest() - for file in files - expect(controllerData.createFileLink(file)).toBe("https://github.com/buildbot/buildbot/blob/a55049bc2e1320e5c4c8dba11e09079e8005668f/#{file}") - - it 'should watch data changes', -> - $scope.change = - builds: [] - $scope.$digest() - state1 = controllerData.change - $scope.change = - builds: [{}] - $scope.$digest() - state2 = controllerData.change - expect(state1).not.toEqual(state2)