Add integration tests

This commit is contained in:
gsb
2026-04-29 22:15:19 +00:00
parent 3e8d3388f6
commit 005db2f431
11 changed files with 1544 additions and 114 deletions
+3 -3
View File
@@ -249,14 +249,14 @@ export class Ribbit {
const revision = await this.collaboration.getRevision(id);
if (!revision) return;
this.cachedMarkdown = revision.content;
this.cachedHTML = null;
this.cachedHTML = this.markdownToHTML(revision.content);
this.collaboration.sendUpdate(revision.content);
if (this.getState() !== this.states.VIEW) {
this.element.innerHTML = this.getHTML();
this.element.innerHTML = this.cachedHTML;
}
this.emitter.emit('change', {
markdown: revision.content,
html: this.getHTML(),
html: this.cachedHTML,
});
}