style(): run linter over packages, integration and spec files, add hook

This commit is contained in:
Kamil Myśliwiec
2019-11-29 09:24:19 +01:00
parent a08d1aadf3
commit c3f4ea34b2
25 changed files with 68 additions and 49 deletions

View File

@@ -49,6 +49,7 @@ describe('MQTT transport', () => {
.expect(200, '15');
});
// tslint:disable-next-line:only-arrow-functions
it(`/POST (concurrent)`, function() {
return request(server)
.post('/concurrent')

View File

@@ -42,8 +42,8 @@ export class AppController {
return result === expected;
};
return data
.map(async tab => await send(tab))
.reduce(async (a, b) => (await a) && (await b));
.map(async tab => send(tab))
.reduce(async (a, b) => (await a) && b);
}
@MessagePattern({ cmd: 'sum' })

View File

@@ -45,9 +45,9 @@ export class MqttController {
return result === expected;
};
return await data
.map(async tab => await send(tab))
.reduce(async (a, b) => (await a) && (await b));
return data
.map(async tab => send(tab))
.reduce(async (a, b) => (await a) && b);
}
@Post('notify')

View File

@@ -55,8 +55,8 @@ export class NatsController {
return result === expected;
};
return data
.map(async tab => await send(tab))
.reduce(async (a, b) => (await a) && (await b));
.map(async tab => send(tab))
.reduce(async (a, b) => (await a) && b);
}
@MessagePattern('math.*')
@@ -81,7 +81,7 @@ export class NatsController {
@Get('exception')
async getError() {
return await this.client
return this.client
.send<number>('exception', {})
.pipe(catchError(err => of(err)));
}

View File

@@ -42,8 +42,8 @@ export class RedisController {
return result === expected;
};
return data
.map(async tab => await send(tab))
.reduce(async (a, b) => (await a) && (await b));
.map(async tab => send(tab))
.reduce(async (a, b) => (await a) && b);
}
@MessagePattern({ cmd: 'sum' })

View File

@@ -53,8 +53,8 @@ export class RMQController {
return result === expected;
};
return data
.map(async tab => await send(tab))
.reduce(async (a, b) => (await a) && (await b));
.map(async tab => send(tab))
.reduce(async (a, b) => (await a) && b);
}
@MessagePattern({ cmd: 'sum' })