mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +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)
|
||||
|
||||
beforeEach(() => cy.exec('yarn run db:reset'))
|
||||
beforeEach(() => cy.then(() => neodeInstance.cypher('MATCH (everything) DETACH DELETE everything;')))
|
||||
|
||||
Cypress.Commands.add('neode', () => {
|
||||
return neodeInstance
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user