Skip to content

Commit feccc15

Browse files
committed
test: remove unnecessary preparation for tests
The function documentation is now built when installing the package.
1 parent 498976f commit feccc15

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/test/cypress/integration/fundoc_spec.cy.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@
22
/// <reference types="cypress" />
33

44
context('Function Documentation', () => {
5-
before (() => {
6-
// Generate function documentation before running tests
7-
cy.timeout(10000);
8-
cy.request({
9-
url: '/regenerate',
10-
auth: {
11-
user: 'admin',
12-
password: ''
13-
}
14-
})
15-
.then((response) => {
16-
expect(response).to.have.property('status')
17-
expect(response.status).to.equal(200)
18-
expect(response.body).to.have.property('status')
19-
expect(response.body.status).to.equal('ok')
20-
})
21-
// .its('body')
22-
// .should('equal', "{ status: 'ok', message: 'Scan completed! ' }")
23-
})
24-
255
beforeEach(() => {
266
cy.visit('')
277
})
@@ -77,4 +57,5 @@ context('Function Documentation', () => {
7757
.should('exist')
7858
})
7959
})
60+
8061
})

0 commit comments

Comments
 (0)