mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -4,8 +4,8 @@
|
||||
var assert = require('assert');
|
||||
var pagination = require('../src/pagination');
|
||||
|
||||
describe('Pagination', function () {
|
||||
it('should create empty pagination for 1 page', function (done) {
|
||||
describe('Pagination', () => {
|
||||
it('should create empty pagination for 1 page', (done) => {
|
||||
var data = pagination.create(1, 1);
|
||||
assert.equal(data.pages.length, 0);
|
||||
assert.equal(data.rel.length, 0);
|
||||
@@ -15,7 +15,7 @@ describe('Pagination', function () {
|
||||
done();
|
||||
});
|
||||
|
||||
it('should create pagination for 10 pages', function (done) {
|
||||
it('should create pagination for 10 pages', (done) => {
|
||||
var data = pagination.create(2, 10);
|
||||
// [1, (2), 3, 4, 5, separator, 9, 10]
|
||||
assert.equal(data.pages.length, 8);
|
||||
@@ -26,7 +26,7 @@ describe('Pagination', function () {
|
||||
done();
|
||||
});
|
||||
|
||||
it('should create pagination for 3 pages with query params', function (done) {
|
||||
it('should create pagination for 3 pages with query params', (done) => {
|
||||
var data = pagination.create(1, 3, { key: 'value' });
|
||||
assert.equal(data.pages.length, 3);
|
||||
assert.equal(data.rel.length, 1);
|
||||
|
||||
Reference in New Issue
Block a user