Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
style(testS3): Clean up linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ReidWeb committed Sep 14, 2018
1 parent 1c6bf63 commit 9f64ec7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/testS3.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ describe('s3.js [Unit]', () => {

class ProgressBarMock {
// eslint-disable-next-line no-empty-function,no-useless-constructor
constructor(a, b) {
constructor() {
this.total = 60;
this.curr = 0;
constructorCallCount++;
Expand Down Expand Up @@ -357,7 +357,7 @@ describe('s3.js [Unit]', () => {

class ProgressBarMock {
// eslint-disable-next-line no-empty-function,no-useless-constructor
constructor(a, b) {
constructor() {
this.total = 60;
this.curr = 0;
}
Expand Down Expand Up @@ -415,7 +415,7 @@ describe('s3.js [Unit]', () => {

class ProgressBarMock {
// eslint-disable-next-line no-empty-function,no-useless-constructor
constructor(a, b) {
constructor() {
this.total = 60;
this.curr = 0;
}
Expand Down Expand Up @@ -455,7 +455,8 @@ describe('s3.js [Unit]', () => {

await uploadFiles('path/to', ['foo.txt'], 'yourBucket', true, true);
const invocationOne = uploadObjStub.getCall(0);
interceptedArgs = invocationOne.args[0];
// eslint-disable-next-line prefer-destructuring
[interceptedArgs] = invocationOne.args[0];
});

it('then Key should omit target directory', async () => {
Expand Down Expand Up @@ -483,7 +484,7 @@ describe('s3.js [Unit]', () => {

class ProgressBarMock {
// eslint-disable-next-line no-empty-function,no-useless-constructor
constructor(a, b) {
constructor() {
this.total = 60;
this.curr = 0;
}
Expand Down Expand Up @@ -532,7 +533,7 @@ describe('s3.js [Unit]', () => {

class ProgressBarMock {
// eslint-disable-next-line no-empty-function,no-useless-constructor
constructor(a, b) {
constructor() {
this.total = 60;
this.curr = 0;
}
Expand Down Expand Up @@ -587,7 +588,7 @@ describe('s3.js [Unit]', () => {

class ProgressBarMock {
// eslint-disable-next-line no-empty-function,no-useless-constructor
constructor(a, b) {
constructor() {
this.total = 60;
this.curr = 0;
}
Expand Down Expand Up @@ -635,15 +636,14 @@ describe('s3.js [Unit]', () => {
});

describe('when all files have been successfully uploaded', () => {

describe('and program is not being run from CLI', async () => {
const s3 = rewire('../src/s3');
const uploadFiles = s3.__get__('uploadFiles');

let tickCallCount = 0;
class ProgressBarMock {
// eslint-disable-next-line no-empty-function,no-useless-constructor
constructor(a, b) {
constructor() {
this.total = 60;
this.curr = 0;
}
Expand Down Expand Up @@ -705,7 +705,7 @@ describe('s3.js [Unit]', () => {
let tickCallCount = 0;
class ProgressBarMock {
// eslint-disable-next-line no-empty-function,no-useless-constructor
constructor(a, b) {
constructor() {
this.total = 60;
this.curr = 0;
}
Expand Down

0 comments on commit 9f64ec7

Please sign in to comment.