Skip to content

Commit

Permalink
Merge branch 'hotfix/v5.0.2' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
rabrowne85 committed Jul 1, 2017
2 parents 222be0a + 2ac7c50 commit a0dfa69
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,36 @@ describe('SmartWizard Default Options', function() {
el = $('#smartwizard');
plugin = el.smartWizard();
});

afterEach(function(){
el.remove();
el = null;
});

it('should add default theme to the element', function() {
expect(el).toHaveClass("sw-theme-default");
});

it('should add toolbar elements', function() {
expect(el.children('.sw-toolbar')).toExist();
expect(el.children('.sw-toolbar').children('.sw-btn-group').children('.sw-btn-next')).toExist();
expect(el.children('.sw-toolbar').children('.sw-btn-group').children('.sw-btn-prev')).toExist();
});

it('should have step anchors', function() {
expect(el.children('ul').children('li').children('a')).toExist();
});

it('should have step contents', function() {
expect(el.children('div').children('div')).toExist();
});

it('should have step anchors step contents are equal numbers', function() {
var a = el.children('ul').children('li').children('a');
var c = el.children('div').children('div');
var c = el.children('div:first').children('div');
expect(a.length).toBe(c.length);
});

});

describe('SmartWizard Navigation', function() {
Expand All @@ -50,15 +50,15 @@ describe('SmartWizard Navigation', function() {
el = $('#smartwizard');
plugin = el.smartWizard();
});

afterEach(function(){
el.remove();
el = null;
});

it('should point to the first step', function() {
expect(el.children('ul').children('li:first')).toHaveClass("active");
expect(el.children('ul').children('li :not(:first)')).not.toHaveClass("active");
});

});
});

0 comments on commit a0dfa69

Please sign in to comment.