Skip to content

Commit 4fa54ff

Browse files
refactor(): remove useless async keywords (unit tests)
1 parent 6d09f36 commit 4fa54ff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/microservices/test/client/client-redis.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe('ClientRedis', () => {
128128
};
129129

130130
describe('not completed', () => {
131-
beforeEach(async () => {
131+
beforeEach(() => {
132132
callback = sinon.spy();
133133

134134
subscription = client.createResponseCallback();
@@ -172,7 +172,7 @@ describe('ClientRedis', () => {
172172
});
173173
});
174174
describe('disposed and "id" is incorrect', () => {
175-
beforeEach(async () => {
175+
beforeEach(() => {
176176
callback = sinon.spy();
177177
subscription = client.createResponseCallback();
178178
subscription('channel', new Buffer(JSON.stringify(responseMessage)));
@@ -218,7 +218,7 @@ describe('ClientRedis', () => {
218218
let createClientSpy: sinon.SinonSpy;
219219
let handleErrorsSpy: sinon.SinonSpy;
220220

221-
beforeEach(async () => {
221+
beforeEach(() => {
222222
createClientSpy = sinon.stub(client, 'createClient').callsFake(
223223
() =>
224224
({

0 commit comments

Comments
 (0)