diff options
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r-- | tests/unit/tabs/tabs_events.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/tabs/tabs_events.js b/tests/unit/tabs/tabs_events.js index d49a34782..4acf15225 100644 --- a/tests/unit/tabs/tabs_events.js +++ b/tests/unit/tabs/tabs_events.js @@ -14,7 +14,7 @@ test('load', function() { }); test('show', function() { - expect(3); + expect(4); var uiObj; el = $('#tabs1').tabs({ @@ -22,9 +22,10 @@ test('show', function() { uiObj = ui; } }); + ok(uiObj !== undefined, 'should fire show after init'); equals(uiObj.tab, $('#tabs1 a')[0], 'should have tab as DOM anchor element'); equals(uiObj.panel, $('#tabs1 div')[0], 'should have panel as DOM div element'); - equals(uiObj.index, 0, ' should have index'); + equals(uiObj.index, 0, 'should have index'); }); |