Skip to content

Commit

Permalink
Switch to rest-params
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Feb 1, 2022
1 parent 609713d commit 814309d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ module.exports = {

// TODO: stop disabling these rules
'prefer-const': 'off',
'prefer-rest-params': 'off',
'no-prototype-builtins': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
Expand Down
8 changes: 4 additions & 4 deletions tests/test_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ let test = QUnit.test;
function module(name: string, options?: any) {
options = options || {};
QUnit.module(name, {
beforeEach: function () {
beforeEach: function (...args: unknown[]) {
configure('async', customAsync);
bb.begin();

if (options.setup) {
options.setup.apply(this, arguments);
options.setup.apply(this, args);
}
},
afterEach: function () {
afterEach: function (...args: unknown[]) {
bb.end();

if (options.teardown) {
options.teardown.apply(this, arguments);
options.teardown.apply(this, args);
}
},
});
Expand Down

0 comments on commit 814309d

Please sign in to comment.