Remove migration logic (settings & templates storage location) (#1732)

* Remove isNewUserSession handling

* Remove writing of setting and templates to localStorage
This commit is contained in:
Chenlei Hu
2024-11-28 11:24:06 -08:00
committed by GitHub
parent b0085114d7
commit df3fff5dbb
4 changed files with 21 additions and 55 deletions

View File

@@ -101,11 +101,7 @@ describe('users', () => {
null,
{ stringify: false }
)
expect(s.app.isNewUserSession).toBeTruthy()
} else {
expect(s.app.isNewUserSession).toBeFalsy()
}
return { users, selection, ...s }
}
@@ -242,7 +238,6 @@ describe('users', () => {
null,
{ stringify: false }
)
expect(app.isNewUserSession).toBeTruthy()
})
it('doesnt show user creation if default user', async () => {
const { app } = await start({
@@ -255,7 +250,6 @@ describe('users', () => {
const { api } = await import('../../../src/scripts/api')
expect(api.storeSettings).toHaveBeenCalledTimes(0)
expect(api.storeUserData).toHaveBeenCalledTimes(0)
expect(app.isNewUserSession).toBeFalsy()
})
it('doesnt allow user switching', async () => {
const { app } = await start({
@@ -279,7 +273,6 @@ describe('users', () => {
const { api } = await import('../../../src/scripts/api')
expect(api.storeSettings).toHaveBeenCalledTimes(0)
expect(api.storeUserData).toHaveBeenCalledTimes(0)
expect(app.isNewUserSession).toBeFalsy()
})
it('doesnt show user creation if default user', async () => {
const { app } = await start({
@@ -292,7 +285,6 @@ describe('users', () => {
const { api } = await import('../../../src/scripts/api')
expect(api.storeSettings).toHaveBeenCalledTimes(0)
expect(api.storeUserData).toHaveBeenCalledTimes(0)
expect(app.isNewUserSession).toBeFalsy()
})
it('doesnt allow user switching', async () => {
const { app } = await start({