Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test fixed + version increment
  • Loading branch information
Eugene Simakin committed Aug 28, 2014
1 parent 7091d97 commit 336390b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion jquery.twbsPagination.js
@@ -1,5 +1,5 @@
/**
* jQuery pagination plugin v1.1.2
* jQuery pagination plugin v1.2.0
* http://esimakin.github.io/twbs-pagination/
*
* Copyright 2014, Eugene Simakin
Expand Down
2 changes: 1 addition & 1 deletion jquery.twbsPagination.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/run-test.html
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.13.0.css">

<script src="http://code.jquery.com/jquery-2.0.3.min.js" type="text/javascript"></script>
<script src="../jquery.twbsPagination.js" type="text/javascript"></script>
<script src="../jquery.twbsPagination.min.js" type="text/javascript"></script>

</head>
<body>
Expand Down
6 changes: 4 additions & 2 deletions tests/test.js
Expand Up @@ -31,7 +31,8 @@
});

test("Test 'getPages' method (ODD visible pages number)", function () {
pag1.twbsPagination('init', {totalPages: 30, visiblePages: 6});
pag1.twbsPagination('destroy');
pag1.twbsPagination({totalPages: 30, visiblePages: 6});
var expected1 = {currentPage: 1, numeric: [1, 2, 3, 4, 5, 6]};
deepEqual(pag1.twbsPagination('getPages', 1), expected1);
var expected2 = {currentPage: 2, numeric: [1, 2, 3, 4, 5, 6]};
Expand All @@ -57,7 +58,8 @@
});

test("Test 'getPages' method (total < visible)", function () {
pag1.twbsPagination('init', {
pag1.twbsPagination('destroy');
pag1.twbsPagination({
totalPages: 3,
visiblePages: 5
});
Expand Down

0 comments on commit 336390b

Please sign in to comment.