fix some linting errors
This commit is contained in:
@@ -8,44 +8,44 @@ context('/examples/export-html-or-json', () => {
|
||||
const json = editor.json()
|
||||
|
||||
expect(json).to.deep.equal({
|
||||
'type': 'document',
|
||||
'content': [
|
||||
type: 'document',
|
||||
content: [
|
||||
{
|
||||
'type': 'paragraph',
|
||||
'content': [
|
||||
type: 'paragraph',
|
||||
content: [
|
||||
{
|
||||
'type': 'text',
|
||||
'text': 'You are able to export your data as '
|
||||
type: 'text',
|
||||
text: 'You are able to export your data as ',
|
||||
},
|
||||
{
|
||||
'type': 'text',
|
||||
'marks': [
|
||||
type: 'text',
|
||||
marks: [
|
||||
{
|
||||
'type': 'code'
|
||||
}
|
||||
type: 'code',
|
||||
},
|
||||
],
|
||||
'text': 'HTML'
|
||||
text: 'HTML',
|
||||
},
|
||||
{
|
||||
'type': 'text',
|
||||
'text': ' or '
|
||||
type: 'text',
|
||||
text: ' or ',
|
||||
},
|
||||
{
|
||||
'type': 'text',
|
||||
'marks': [
|
||||
type: 'text',
|
||||
marks: [
|
||||
{
|
||||
'type': 'code'
|
||||
}
|
||||
type: 'code',
|
||||
},
|
||||
],
|
||||
'text': 'JSON'
|
||||
text: 'JSON',
|
||||
},
|
||||
{
|
||||
'type': 'text',
|
||||
'text': '.'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
type: 'text',
|
||||
text: '.',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
})
|
||||
})
|
||||
})
|
||||
@@ -57,4 +57,4 @@ context('/examples/export-html-or-json', () => {
|
||||
expect(html).to.equal('<p>You are able to export your data as <code>HTML</code> or <code>JSON</code>.</p>')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -10,4 +10,4 @@ context('/examples/focus', () => {
|
||||
cy.get('.ProseMirror p:first').should('have.class', 'has-focus')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -4,7 +4,7 @@ context('/examples/history', () => {
|
||||
})
|
||||
|
||||
it('should not have a mistake', () => {
|
||||
cy.get('.ProseMirror').then(([{ editor }]) => {
|
||||
cy.get('.ProseMirror').then(() => {
|
||||
cy.get('.ProseMirror h2:first').should('not.contain', 'Mistake')
|
||||
})
|
||||
})
|
||||
@@ -22,4 +22,4 @@ context('/examples/history', () => {
|
||||
cy.get('.ProseMirror h2:first').should('not.contain', 'Mistake')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -99,4 +99,4 @@ context('/examples/markdown-shortcuts', () => {
|
||||
.find('blockquote')
|
||||
.should('contain', 'foobar')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -22,4 +22,4 @@ context('/examples/read-only', () => {
|
||||
cy.get('.ProseMirror p:first').should('contain', 'Edited: ')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -2,4 +2,4 @@ context('/examples/simple', () => {
|
||||
before(() => {
|
||||
cy.visit('/examples/simple')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user