chore: eslint prefer-arrow-callback

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:01:39 -07:00
committed by Julian Lam
parent 707b55b6a5
commit b56d9e12b5
334 changed files with 4995 additions and 5182 deletions

View File

@@ -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);