jazz
jazz copied to clipboard
gracefulShutdown is called twice during a logOut call
Expected
When calling the logOut function the gracefulShutdown is only called once.
Actual
While writing a test using Cypress.io I setup a spy on the gracefulShutdown function using the following:
const logOutSpy = cy.spy().as('logOutSpy');
account._raw.core.node.gracefulShutdown = logOutSpy
When calling the logOut function returned from useAccount the gracefulShutdown is called twice instead of once. Is this the expected outcome?