mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
style(): run linter over packages, integration and spec files, add hook
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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' })
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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)));
|
||||
}
|
||||
|
||||
@@ -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' })
|
||||
|
||||
@@ -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' })
|
||||
|
||||
Reference in New Issue
Block a user