mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Take advantage of Cypress built-in promises
This commit is contained in:
parent
447b19eea0
commit
1fefc6e754
@ -9,7 +9,7 @@ const neo4jConfigs = {
|
|||||||
}
|
}
|
||||||
const neodeInstance = getNeode(neo4jConfigs)
|
const neodeInstance = getNeode(neo4jConfigs)
|
||||||
|
|
||||||
beforeEach(() => cy.exec('yarn run db:reset'))
|
beforeEach(() => cy.then(() => neodeInstance.cypher('MATCH (everything) DETACH DELETE everything;')))
|
||||||
|
|
||||||
Cypress.Commands.add('neode', () => {
|
Cypress.Commands.add('neode', () => {
|
||||||
return neodeInstance
|
return neodeInstance
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user