chore: cleanup, ci workflows and formatting (#127064)
* ci: setup workflows, dependabot, labeler and commit linting * docs: update README, community files and issue templates * chore: configure prettier, editorconfig and format codebase * chore: restore changes lost during rebase * docs: adjust url for new logo * fix: align badges * chore: resolve conflicts and re-add temp lint
This commit is contained in:
parent
c2d978fd0a
commit
807efd502d
1 changed files with 6790 additions and 3547 deletions
|
|
@ -11,7 +11,7 @@ describe('Message', function () {
|
|||
let chat;
|
||||
let message;
|
||||
|
||||
before(async function() {
|
||||
before(async function () {
|
||||
this.timeout(35000);
|
||||
client = helper.createClient({ authenticated: true });
|
||||
await client.initialize();
|
||||
|
|
@ -88,7 +88,7 @@ describe('Message', function () {
|
|||
describe('Delete', function () {
|
||||
it('can delete a message for me', async function () {
|
||||
await message.delete();
|
||||
|
||||
|
||||
await helper.sleep(5000);
|
||||
expect(await message.reload()).to.equal(null);
|
||||
});
|
||||
|
|
@ -105,12 +105,14 @@ describe('Message', function () {
|
|||
|
||||
expect(await message.reload()).to.equal(null);
|
||||
expect(callback.called).to.equal(true);
|
||||
const [ revokeMsg, originalMsg ] = callback.args[0];
|
||||
expect(revokeMsg.id._serialized).to.equal(originalMsg.id._serialized);
|
||||
const [revokeMsg, originalMsg] = callback.args[0];
|
||||
expect(revokeMsg.id._serialized).to.equal(
|
||||
originalMsg.id._serialized,
|
||||
);
|
||||
expect(originalMsg.body).to.equal('sneaky message');
|
||||
expect(originalMsg.type).to.equal('chat');
|
||||
expect(revokeMsg.body).to.equal('');
|
||||
expect(revokeMsg.type).to.equal('revoked');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue