Skip to content

Commit

Permalink
Merge pull request #62 from bringg/dependabot-npm_and_yarn-prettier-3…
Browse files Browse the repository at this point in the history
….0.0

Bump prettier from 2.8.8 to 3.0.0
  • Loading branch information
shamil committed Jul 6, 2023
2 parents 3da6fa8 + 4845be4 commit d89e48b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"eslint-plugin-import": "^2.26.0",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"prettier": "^2.8.3",
"prettier": "^3.0.0",
"sinon": "^15.0.1"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions test/disconnect-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('disconnections', function () {
sinon.assert.callCount(arnavmq.connection.getDefaultChannel, retryCount + 1);
assert.strictEqual(err.message, expectedError);
return true;
}
},
);
});
});
Expand Down Expand Up @@ -95,7 +95,7 @@ describe('disconnections', function () {

assert.deepStrictEqual(
responses,
Array.from({ length: 49 }, (_, i) => i + 2)
Array.from({ length: 49 }, (_, i) => i + 2),
);
assert.strictEqual(counter, 50, `consumer counter should be 50, but it is ${counter}`);
});
Expand Down
14 changes: 7 additions & 7 deletions test/producer-consumer-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('producer/consumer', function () {
const getChannelDefault = sandbox.spy(Channels.prototype, 'defaultChannel');

await arnavmq.consumer.consume(queueName, { channel: { prefetch } }, (message) =>
Promise.resolve(`${message}-test`)
Promise.resolve(`${message}-test`),
);

sinon.assert.calledWith(getChannel, queueName, { prefetch });
Expand All @@ -89,13 +89,13 @@ describe('producer/consumer', function () {

// This is the first one
await arnavmq.consumer.consume(queueName, { channel: { prefetch } }, (message) =>
Promise.resolve(`${message}-test`)
Promise.resolve(`${message}-test`),
);

await assert.rejects(async () => {
// This is the second one
await arnavmq.consumer.consume(queueName, { channel: { prefetch: prefetch + 1 } }, (message) =>
Promise.resolve(`${message}-test`)
Promise.resolve(`${message}-test`),
);
}, ChannelAlreadyExistsError);
});
Expand All @@ -113,7 +113,7 @@ describe('producer/consumer', function () {
const consume = sandbox.stub(channel, 'consume').rejects(new Error('Error simulating connection closed.'));

await arnavmq.consumer.consume(queueName, { channel: { prefetch } }, (message) =>
Promise.resolve(`${message}-test`)
Promise.resolve(`${message}-test`),
);
sinon.assert.called(consume);
});
Expand Down Expand Up @@ -234,7 +234,7 @@ describe('producer/consumer', function () {
await utils.timeoutPromise(500);

assert.equal(letters, 0);
}
},
);
});

Expand Down Expand Up @@ -275,7 +275,7 @@ describe('producer/consumer', function () {
done(error);
}
},
{}
{},
)
.then(() => arnavmq.producer.produce('', { content: 'ok' }, { routingKey: fixtures.routingKey }))
.catch(done);
Expand Down Expand Up @@ -342,7 +342,7 @@ describe('producer/consumer', function () {
.then(() =>
arnavmq.producer.produce('queue-name-undefined-suffix', {
msg: 'test for undefined queue suffix',
})
}),
);
});
});
Expand Down
4 changes: 2 additions & 2 deletions test/rpc-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Producer/Consumer RPC messaging:', () => {
})
.then(() => {
assert.fail('Did not get the expected error.');
})
}),
)
.catch((error) => {
if (error instanceof assert.AssertionError) {
Expand All @@ -79,7 +79,7 @@ describe('Producer/Consumer RPC messaging:', () => {
assert.strictEqual(
error.name,
'SyntaxError',
`Got unexpected error of type '${error.name}': ${error.message}`
`Got unexpected error of type '${error.name}': ${error.message}`,
);
done();
} catch (assertError) {
Expand Down

0 comments on commit d89e48b

Please sign in to comment.