Skip to content

Commit

Permalink
small fixes from mistakes made while merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Koreman committed Nov 14, 2024
1 parent f300bd1 commit 5b7e6e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/code-view/__tests__/code-view.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ describe("CodeView", () => {
expect(content.getElement()).toHaveTextContent("# Hello World This is a markdown example.");
});

test("correctly renders multi line content", () => {
render(<CodeView content={`# Hello World\n\nThis is a markdown example.`}></CodeView>);
const wrapper = createWrapper()!.findCodeView()!;
const content = wrapper.findContent();
expect(content.getElement()).toHaveTextContent("# Hello World This is a markdown example.");
});

test("correctly renders copy button slot", () => {
render(<CodeView content={"Hello World"} actions={<button>Copy</button>}></CodeView>);
const wrapper = createWrapper()!.findCodeView();
Expand Down
4 changes: 2 additions & 2 deletions src/code-view/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ $color-background-code-view-dark: #282c34;
border-start-end-radius: cs.$border-radius-tiles;
border-end-start-radius: cs.$border-radius-tiles;
border-end-end-radius: cs.$border-radius-tiles;
padding-top: cs.$space-static-xs;
padding-bottom: cs.$space-static-xs;
padding-block-start: cs.$space-static-xs;
padding-block-end: cs.$space-static-xs;
table-layout: auto;
width: 100%;
border-spacing: 0;
Expand Down

0 comments on commit 5b7e6e6

Please sign in to comment.