mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
chore: remove repetitive words (#6290)
Signed-off-by: reallylowest <sunjinping@outlook.com>
This commit is contained in:
parent
10ef48a199
commit
ed1c5dd184
4 changed files with 5 additions and 5 deletions
|
@ -355,7 +355,7 @@ exports.getChatHistory = async (padID: string, start:number, end:number) => {
|
||||||
throw new CustomError('end is higher than the current chatHead', 'apierror');
|
throw new CustomError('end is higher than the current chatHead', 'apierror');
|
||||||
}
|
}
|
||||||
|
|
||||||
// the the whole message-log and return it to the client
|
// the whole message-log and return it to the client
|
||||||
const messages = await pad.getChatMessages(start, end);
|
const messages = await pad.getChatMessages(start, end);
|
||||||
|
|
||||||
return {messages};
|
return {messages};
|
||||||
|
|
|
@ -449,7 +449,7 @@ class PadDiff {
|
||||||
|
|
||||||
|
|
||||||
// this method is 80% like Changeset.inverse. I just changed so instead of reverting,
|
// this method is 80% like Changeset.inverse. I just changed so instead of reverting,
|
||||||
// it adds deletions and attribute changes to to the atext.
|
// it adds deletions and attribute changes to the atext.
|
||||||
PadDiff.prototype._createDeletionChangeset = function (cs, startAText, apool) {
|
PadDiff.prototype._createDeletionChangeset = function (cs, startAText, apool) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -69,7 +69,7 @@ const flatten1 = (array) => array.reduce((a, b) => a.concat(b), []);
|
||||||
// A hook function settles when it provides a value (via callback or return) or throws. If a hook
|
// A hook function settles when it provides a value (via callback or return) or throws. If a hook
|
||||||
// function attempts to settle again (e.g., call the callback again, or call the callback and also
|
// function attempts to settle again (e.g., call the callback again, or call the callback and also
|
||||||
// return a value) then the second attempt has no effect except either an error message is logged or
|
// return a value) then the second attempt has no effect except either an error message is logged or
|
||||||
// there will be an unhandled promise rejection depending on whether the the subsequent attempt is a
|
// there will be an unhandled promise rejection depending on whether the subsequent attempt is a
|
||||||
// duplicate (same value or error) or different, respectively.
|
// duplicate (same value or error) or different, respectively.
|
||||||
//
|
//
|
||||||
// See the tests in src/tests/backend/specs/hooks.js for examples of supported and prohibited
|
// See the tests in src/tests/backend/specs/hooks.js for examples of supported and prohibited
|
||||||
|
|
|
@ -75,7 +75,7 @@ test.describe('embed links', function () {
|
||||||
expect(shareLink).toBe(padURL);
|
expect(shareLink).toBe(padURL);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('is an iframe with the the correct url parameters and correct size', async function ({page}) {
|
test('is an iframe with the correct url parameters and correct size', async function ({page}) {
|
||||||
|
|
||||||
const shareButton = page.locator('.buttonicon-embed')
|
const shareButton = page.locator('.buttonicon-embed')
|
||||||
await shareButton.click()
|
await shareButton.click()
|
||||||
|
@ -111,7 +111,7 @@ test.describe('embed links', function () {
|
||||||
expect(containsReadOnlyLink).toBe(true);
|
expect(containsReadOnlyLink).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('the embed as iframe code is an iframe with the the correct url parameters and correct size', async function ({page}) {
|
test('the embed as iframe code is an iframe with the correct url parameters and correct size', async function ({page}) {
|
||||||
|
|
||||||
|
|
||||||
// open share dropdown
|
// open share dropdown
|
||||||
|
|
Loading…
Reference in a new issue