Skip to content

Commit

Permalink
Merge pull request #131 from yacchin1205/fix/etherpad-lite-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 authored May 26, 2024
2 parents 701fc5d + 224bd06 commit 3396d2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/tests/backend/specs/exportHTML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ describe('export alignment to HTML', function () {
.expect(200);
});

it('returns HTML with Subscript HTML tags', async function (done) {
it('returns HTML with Subscript HTML tags', async function () {
const res = await agent.get(getHTMLEndPointFor(padID))
.set("Authorization", await generateJWTToken())
const html = res.body.data.html;
Expand Down Expand Up @@ -170,8 +170,8 @@ describe('export alignment to HTML', function () {
reject(err);
} else {
const html = res.body.data.html;
const expectedHTML = '<h1 style=\'text-align:left\'>Hello world</h1><br><br></body></html>';
if (html.indexOf(expectedHTML) === -1) {
const expectedHTML = /<h1 +style='text-align:left'>Hello world<\/h1><br><br><\/body><\/html>/;
if (html.search(expectedHTML) === -1) {
reject(new Error('No left tag detected'));
} else {
resolve();
Expand Down

0 comments on commit 3396d2a

Please sign in to comment.