Added text_utility to JS tests
This commit is contained in:
parent
4140c4622f
commit
b543a96e1c
1 changed files with 7 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
|||
#= require lib/text_utility
|
||||
#= require issue
|
||||
|
||||
describe 'Issue', ->
|
||||
|
@ -38,7 +39,7 @@ describe 'reopen/close issue', ->
|
|||
expect(typeof $btnClose.prop('disabled')).toBe('undefined')
|
||||
|
||||
$btnClose.trigger('click')
|
||||
|
||||
|
||||
expect($btnReopen).toBeVisible()
|
||||
expect($btnClose).toBeHidden()
|
||||
expect($('div.status-box-closed')).toBeVisible()
|
||||
|
@ -50,7 +51,7 @@ describe 'reopen/close issue', ->
|
|||
expect(req.type).toBe('PUT')
|
||||
expect(req.url).toBe('http://goesnowhere.nothing/whereami')
|
||||
req.success saved: false
|
||||
|
||||
|
||||
$btnClose = $('a.btn-close')
|
||||
$btnReopen = $('a.btn-reopen')
|
||||
$btnClose.attr('href','http://goesnowhere.nothing/whereami')
|
||||
|
@ -59,7 +60,7 @@ describe 'reopen/close issue', ->
|
|||
expect(typeof $btnClose.prop('disabled')).toBe('undefined')
|
||||
|
||||
$btnClose.trigger('click')
|
||||
|
||||
|
||||
expect($btnReopen).toBeHidden()
|
||||
expect($btnClose).toBeVisible()
|
||||
expect($('div.status-box-closed')).toBeHidden()
|
||||
|
@ -73,7 +74,7 @@ describe 'reopen/close issue', ->
|
|||
expect(req.type).toBe('PUT')
|
||||
expect(req.url).toBe('http://goesnowhere.nothing/whereami')
|
||||
req.error()
|
||||
|
||||
|
||||
$btnClose = $('a.btn-close')
|
||||
$btnReopen = $('a.btn-reopen')
|
||||
$btnClose.attr('href','http://goesnowhere.nothing/whereami')
|
||||
|
@ -82,7 +83,7 @@ describe 'reopen/close issue', ->
|
|||
expect(typeof $btnClose.prop('disabled')).toBe('undefined')
|
||||
|
||||
$btnClose.trigger('click')
|
||||
|
||||
|
||||
expect($btnReopen).toBeHidden()
|
||||
expect($btnClose).toBeVisible()
|
||||
expect($('div.status-box-closed')).toBeHidden()
|
||||
|
@ -105,4 +106,4 @@ describe 'reopen/close issue', ->
|
|||
expect($btnReopen).toBeHidden()
|
||||
expect($btnClose).toBeVisible()
|
||||
expect($('div.status-box-open')).toBeVisible()
|
||||
expect($('div.status-box-closed')).toBeHidden()
|
||||
expect($('div.status-box-closed')).toBeHidden()
|
||||
|
|
Loading…
Reference in a new issue