Skip to content

Commit e6ed348

Browse files
committed
chore: format using prettier
1 parent d93934d commit e6ed348

3 files changed

Lines changed: 15 additions & 34 deletions

File tree

cypress/support/splitUtils.js

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,24 @@ export function moveGutterByMouse(gutters, num, x, y) {
1515

1616
export function moveGutterByKeyboard(gutters, num, numKeyPresses, keySequence) {
1717
for (let i = 0; i < numKeyPresses; i++) {
18-
cy.get(gutters)
19-
.eq(num)
20-
.focus()
21-
.type(`{${keySequence}}`)
18+
cy.get(gutters).eq(num).focus().type(`{${keySequence}}`)
2219
cy.wait(10)
2320
}
2421
}
2522

2623
export function checkGutterAriaLabel(gutters, num, ariaLabel) {
27-
cy.get(gutters)
28-
.eq(num)
29-
.should('have.attr', 'aria-label')
30-
.and('equal', ariaLabel)
24+
cy.get(gutters).eq(num).should('have.attr', 'aria-label').and('equal', ariaLabel)
3125
}
3226

3327
export function checkGuttersAriaValueTexts(gutters, ariaValueTexts) {
34-
cy.get(gutters)
35-
.each(($gutter, index) => {
36-
const ariaValueText = ariaValueTexts[index]
37-
if (ariaValueText === null) {
38-
cy.wrap($gutter)
39-
.should('not.have.attr', 'aria-valuetext')
40-
} else {
41-
cy.wrap($gutter)
42-
.should('have.attr', 'aria-valuetext')
43-
.and('equal', ariaValueTexts[index])
44-
}
45-
})
28+
cy.get(gutters).each(($gutter, index) => {
29+
const ariaValueText = ariaValueTexts[index]
30+
if (ariaValueText === null) {
31+
cy.wrap($gutter).should('not.have.attr', 'aria-valuetext')
32+
} else {
33+
cy.wrap($gutter).should('have.attr', 'aria-valuetext').and('equal', ariaValueTexts[index])
34+
}
35+
})
4636
}
4737

4838
//////////////////////////////////////////

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@
7474
"prettier --write"
7575
]
7676
}
77-
}
77+
}

tsconfig.json

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,11 @@
1111
"emitDecoratorMetadata": true,
1212
"experimentalDecorators": true,
1313
"target": "ES2022",
14-
"typeRoots": [
15-
"node_modules/@types"
16-
],
17-
"lib": [
18-
"es2018",
19-
"dom"
20-
],
14+
"typeRoots": ["node_modules/@types"],
15+
"lib": ["es2018", "dom"],
2116
"paths": {
22-
"angular-split": [
23-
"dist/angular-split"
24-
],
25-
"angular-split/*": [
26-
"dist/angular-split/*"
27-
]
17+
"angular-split": ["dist/angular-split"],
18+
"angular-split/*": ["dist/angular-split/*"]
2819
},
2920
"useDefineForClassFields": false
3021
}

0 commit comments

Comments
 (0)