Skip to content

Commit 35465dd

Browse files
committed
lint fixes
1 parent b49198c commit 35465dd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

cypress/e2e/home.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('Navigating to the home page', () => {
6565
})
6666

6767
cy.get('input.search-bar').type(invalidQuery)
68-
cy.get('button.search-button').click()
68+
cy.get('button.search-button').click()
6969
cy.url().should('include', `/browse?q=${invalidQuery}`)
7070
cy.get('input.search-bar').should('have.value', invalidQuery)
7171
cy.get("p[data-cy='no-results']").should('contain', `Your search for ${invalidQuery} returned no results`)

cypress/e2e/request.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ describe.skip('Viewing one request', () => {
9797
files = true
9898
})
9999

100-
it("should show the request stats section.", () => {
100+
it('should show the request stats section.', () => {
101101
cy.get('div.request-stats-card').should('exist').then(() => {
102102
cy.log('Request stats section renders successfully.')
103103
})
104104
})
105105

106-
it("should show the status bar.", () => {
106+
it('should show the status bar.', () => {
107107
cy.get("div[data-cy='status-bar']").should('exist').then(() => {
108108
cy.log('Status bar renders successfully.')
109109
})

cypress/e2e/requests.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe('Viewing all requests', () => {
8282
.and('have.length', 3)
8383
.then(() => {
8484
cy.log('Successfully viewing request list.')
85-
})
85+
})
8686
})
8787
})
8888

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"cypress:e2e": "start-server-and-test dev http://localhost:3000 \"cypress open --e2e --browser electron\"",
1111
"cypress:headless:e2e": "start-server-and-test dev http://localhost:3000 \"cypress run --e2e --browser electron\"",
1212
"dev": "next dev",
13-
"lint": "next lint --dir pages --dir utils",
14-
"lint:fix": "next lint --dir pages --dir utils --fix",
13+
"lint": "next lint --dir pages --dir --dir cypress/e2e utils",
14+
"lint:fix": "next lint --dir pages --dir utils --dir cypress/e2e --fix",
1515
"jest": "jest",
1616
"jest-watch": "jest --watch",
1717
"release": "release-it",

0 commit comments

Comments
 (0)