Skip to content

Commit

Permalink
chore: upgrade to gts v2 (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Apr 12, 2020
1 parent e0adb15 commit 700cc05
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@types/uuid": "^7.0.0",
"c8": "^7.0.0",
"codecov": "^3.0.4",
"gts": "2.0.0-alpha.4",
"gts": "^2.0.0",
"linkinator": "^2.0.0",
"mocha": "^7.1.1",
"proxyquire": "^2.0.1",
Expand Down
2 changes: 1 addition & 1 deletion samples/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
// See the License for the specific language governing permissions and
// limitations under the License.

console.warn(`no sample tests available 👻`);
console.warn('no sample tests available 👻');
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class Paginator {

// overwrite the original to auto-paginate
/* eslint-disable @typescript-eslint/no-explicit-any */
Class.prototype[methodName] = function(...args: any[]) {
Class.prototype[methodName] = function (...args: any[]) {
const parsedArguments = paginator.parseArguments_(args);
return paginator.run_(parsedArguments, originalMethod.bind(this));
};
Expand All @@ -113,7 +113,7 @@ export class Paginator {
*/
/* eslint-disable @typescript-eslint/no-explicit-any */
streamify<T = any>(methodName: string) {
return function(
return function (
// tslint:disable-next-line:no-any
this: {[index: string]: Function},
/* eslint-disable @typescript-eslint/no-explicit-any */
Expand Down
2 changes: 1 addition & 1 deletion system-test/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
// See the License for the specific language governing permissions and
// limitations under the License.

console.warn(`no system tests available 👻`);
console.warn('no system tests available 👻');
4 changes: 2 additions & 2 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe('paginator', () => {
});

it('should maintain `this` context', done => {
FakeClass.prototype.methodToExtend = function() {
FakeClass.prototype.methodToExtend = function () {
return this.uuid;
};

Expand Down Expand Up @@ -184,7 +184,7 @@ describe('paginator', () => {

it('should apply the proper context', done => {
const parsedArguments = {a: 'b', c: 'd'} as ParsedArguments;
FakeClass.prototype.methodToExtend = function() {
FakeClass.prototype.methodToExtend = function () {
return this;
};
sandbox.stub(paginator, 'parseArguments_').callsFake(() => {
Expand Down
3 changes: 0 additions & 3 deletions tslint.json

This file was deleted.

0 comments on commit 700cc05

Please sign in to comment.