import { EditorJsDoc } from "types/editor.types";
import { parse } from ".";
const testDoc = {
time: 1590972432078,
blocks: [
{ type: "header", data: { text: "Stairway to heaven", level: 1 } },
{
type: "paragraph",
data: {
text:
"There's a lady who's sure
All that glitters is gold
And she's buying a stairway to Heaven
When she gets there she knows
If the stores are all closed
With a word she can get what she came for
Oh oh oh oh and she's buying a stairway to Heaven",
},
},
{
type: "paragraph",
data: {
text:
"There's a sign on the wall
But she wants to be sure
'Cause you know sometimes words have two meanings
In a tree by the brook
There's a songbird who sings
Sometimes all of our thoughts are misgiving",
},
},
{
type: "image",
data: {
file: {
url:
"https://upload.wikimedia.org/wikipedia/commons/4/4b/Stairway_to_Heaven_by_Led_Zeppelin_US_promotional_single.png",
},
caption: "Original Record",
withBorder: false,
stretched: false,
withBackground: false,
},
},
{
type: "quote",
data: {
text: "Maile ta tannnnnnna pakayen!",
caption: "Namrata Khanal",
alignment: "left",
},
},
{
type: "raw",
data: { html: "\nDo whatever you want\n" },
},
{
type: "list",
data: { style: "ordered", items: ["Happiness", "Bliss"] },
},
{
type: "warning",
data: {
title: "This is a goddamn warning.",
message:
"Jab dharti main Kans aata hai, tab usko maarne ke liye Krishna ka bhi janm hota hai, bhosdike.",
},
},
{
type: "paragraph",
data: {
text:
'This shit smells like teen spirit',
},
},
{
type: "paragraph",
data: {
text:
'I am going to mark the next two words: what the! ok I\'m done now.',
},
},
{
type: "paragraph",
data: {
text:
'To clear the screen, just type clear and press enter on the prompt. And here\'s a damn unordered list:',
},
},
{
type: "list",
data: {
style: "unordered",
items: ["bill", "boomhauer", "dale", "hank"],
},
},
],
version: "2.17.0",
} as EditorJsDoc;
test("test sanity", () => {
parse(testDoc);
});