-
Notifications
You must be signed in to change notification settings - Fork 476
Modernisation 27 - Switch to mocha bdd style in preparation for moving to node test runner #831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: amqplib-modernisation-26-format-tests
Are you sure you want to change the base?
Conversation
"noPrototypeBuiltins": "error", | ||
"noVar": "error" | ||
"noVar": "error", | ||
"noExportsInTest": "off" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that the tests have describe / it, biome recognises them as tests and complains about the exports
} | ||
describe('Error handling', () => { | ||
|
||
it('Throw error in connection open callback', (done) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since amqplib no longer supports v0.8 or earlier, we no longer have to worry about ignoring the test in earlier version
.then((open) => { | ||
send(defs.ChannelCloseOk, {}, open.channel); | ||
}) | ||
.then(succeed(done), fail(done))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the formatting that was somehow missed in the previous PR
}) | ||
.then(succeed(done), fail(done)); | ||
} | ||
)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed some more formatting that was previously missed in the previous PR
send(defs.BasicDeliver, DELIVER_FIELDS, ch, Buffer.from('')); | ||
}, done); | ||
} | ||
)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More formatting fixes
No description provided.