add newline-after-var rule to eslint config
This commit is contained in:
@@ -16,6 +16,7 @@ describe('code block highlight', () => {
|
||||
|
||||
const createEditorEl = () => {
|
||||
const editorEl = document.createElement('div')
|
||||
|
||||
editorEl.classList.add(editorElClass)
|
||||
|
||||
document.body.appendChild(editorEl)
|
||||
|
||||
@@ -79,6 +79,7 @@ Cypress.Commands.add(
|
||||
const data = pasteType === 'application/json' ? JSON.stringify(pastePayload) : pastePayload
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer
|
||||
const clipboardData = new DataTransfer()
|
||||
|
||||
clipboardData.setData(pasteType, data)
|
||||
// https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event
|
||||
const pasteEvent = new ClipboardEvent('paste', {
|
||||
@@ -88,6 +89,7 @@ Cypress.Commands.add(
|
||||
data,
|
||||
clipboardData,
|
||||
})
|
||||
|
||||
subject[0].dispatchEvent(pasteEvent)
|
||||
|
||||
return subject
|
||||
|
||||
Reference in New Issue
Block a user