Add a cobs fixture and issue and patch tests

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-06-08 11:13:28 +02:00
parent 5b3c293293
commit 107696c3c9
14 changed files with 489 additions and 18 deletions
+6 -3
View File
@@ -18,9 +18,9 @@
import Floating from "@app/components/Floating.svelte";
import Icon from "@app/components/Icon.svelte";
import InlineMarkdown from "@app/components/InlineMarkdown.svelte";
import ProjectLink from "@app/components/ProjectLink.svelte";
import ThreadComponent from "@app/components/Thread.svelte";
import Markdown from "@app/components/Markdown.svelte";
import ProjectLink from "@app/components/ProjectLink.svelte";
import Thread from "@app/components/Thread.svelte";
export let authorId: string;
export let authorAlias: string | undefined = undefined;
@@ -208,6 +208,9 @@
{/if}
{#if previousRevOid}
<ProjectLink
title="Compare {utils.formatObjectId(
previousRevOid,
)}..{utils.formatObjectId(revisionOid)}"
projectParams={{
search: `diff=${previousRevOid}..${revisionOid}`,
}}>
@@ -254,7 +257,7 @@
{#each timelines as element}
{#if element.type === "thread"}
<div class="review">
<ThreadComponent
<Thread
rawPath={utils.getRawBasePath(projectId, baseUrl, projectHead)}
thread={element.inner}
on:reply />