fix some linting errors

This commit is contained in:
Philipp Kühn
2020-09-23 23:38:11 +02:00
parent 59adb2c616
commit 5dff1c00d8
32 changed files with 82 additions and 78 deletions

View File

@@ -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>')
})
})
})
})

View File

@@ -10,4 +10,4 @@ context('/examples/focus', () => {
cy.get('.ProseMirror p:first').should('have.class', 'has-focus')
})
})
})
})

View File

@@ -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')
})
})
})
})

View File

@@ -99,4 +99,4 @@ context('/examples/markdown-shortcuts', () => {
.find('blockquote')
.should('contain', 'foobar')
})
})
})

View File

@@ -22,4 +22,4 @@ context('/examples/read-only', () => {
cy.get('.ProseMirror p:first').should('contain', 'Edited: ')
})
})
})
})

View File

@@ -2,4 +2,4 @@ context('/examples/simple', () => {
before(() => {
cy.visit('/examples/simple')
})
})
})