Cypress - Authentication and Sessions
Identify the error in this Cypress code snippet for preserving local storage:
beforeEach(() => {
cy.restoreLocalStorage()
})
afterEach(() => {
cy.saveLocalStorage()
})