Commit 6536ab84 by Ahsan Ulhaq

change the description for ambiguous tests

parent 47670b05
...@@ -72,7 +72,7 @@ describe 'Calculator', -> ...@@ -72,7 +72,7 @@ describe 'Calculator', ->
expect($('.help')).toHaveAttr('aria-hidden', 'true') expect($('.help')).toHaveAttr('aria-hidden', 'true')
describe 'handleClickOnHintButton', -> describe 'handleClickOnHintButton', ->
it 'on click hint button hint popup becomes shown ', -> it 'on click hint button hint popup becomes visible ', ->
e = jQuery.Event('click'); e = jQuery.Event('click');
$('#calculator_hint').trigger(e); $('#calculator_hint').trigger(e);
expect($('.help')).toHaveClass 'shown' expect($('.help')).toHaveClass 'shown'
...@@ -129,7 +129,7 @@ describe 'Calculator', -> ...@@ -129,7 +129,7 @@ describe 'Calculator', ->
expect(@calculator.activeHint.attr('id')).toBe($('.hint-item').eq(2).attr('id')) expect(@calculator.activeHint.attr('id')).toBe($('.hint-item').eq(2).attr('id'))
it 'if this was the last item, select the second one', -> it 'if this was the last item, select the second last', ->
@calculator.activeHint = $('.hint-item').eq(2) @calculator.activeHint = $('.hint-item').eq(2)
@calculator.prevHint() @calculator.prevHint()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment