Skip to content

Commit

Permalink
Upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Mar 23, 2021
1 parent 3d24f4a commit f9a5388
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 14 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/StructuredText/__tests__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`StructuredText simple dast /2 with default rules renders the document 1`] = `
<div>
<h1>This<br>is a<br>title!</h1><pre data-language="javascript"><code>function greetings() {
console.log('Hi!');
}</code></pre>
</div>
`;
exports[`StructuredText simple dast with no links/blocks with custom rules renders the document 1`] = ``;
exports[`StructuredText simple dast with no links/blocks with default rules renders the document 1`] = `
Expand Down
37 changes: 37 additions & 0 deletions src/StructuredText/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,43 @@ describe("StructuredText", () => {
});
});

describe("simple dast /2", () => {
const structuredText = {
schema: "dast",
document: {
type: "root",
children: [
{
type: "heading",
level: 1,
children: [
{
type: "span",
value: "This\nis a\ntitle!",
},
],
},
{
type: "code",
language: "javascript",
highlight: [1],
code: "function greetings() {\n console.log('Hi!');\n}",
},
],
},
};

describe("with default rules", () => {
it("renders the document", () => {
const wrapper = mount(StructuredText, {
propsData: { data: structuredText },
});
// await wrapper.vm.$nextTick();
expect(wrapper).toMatchSnapshot();
});
});
});

describe("simple dast with no links/blocks", () => {
const structuredText = {
value: {
Expand Down

1 comment on commit f9a5388

@vercel
Copy link

@vercel vercel bot commented on f9a5388 Mar 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.