Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
test: update oudated test
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed Sep 26, 2020
1 parent 8f6e3d0 commit 5439621
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/renderer/components/Kanban/Card/formatMarkdown.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { parseTag } from './formatMarkdown';

describe('Markdown tag', () => {
const style = 'style="background:hsl(35, 100%, 55%); color=hsl(207, 95%, 8%);"';
const style = 'style="background:#98989869; color:#222; --hover-background: #98989855"';
it('hello #world', () => {
expect(parseTag(`hello #world`)).toEqual(
`hello <span class="pl-tag" ${style}>#world</span>&nbsp;`
expect(parseTag(`hello #world`).trim()).toEqual(
`hello <span class="pl-tag" ${style}>#world</span>`
);
expect(parseTag(`hello #world `)).toEqual(
`hello <span class="pl-tag" ${style}>#world</span>&nbsp;`
expect(parseTag(`hello #world `).trim()).toEqual(
`hello <span class="pl-tag" ${style}>#world</span>`
);
});
});

0 comments on commit 5439621

Please sign in to comment.