Skip to content

Commit

Permalink
remove useless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tardyp committed Mar 21, 2017
1 parent d5a8273 commit 877260d
Showing 1 changed file with 0 additions and 33 deletions.
Expand Up @@ -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)

0 comments on commit 877260d

Please sign in to comment.