about summary refs log tree commit diff
path: root/src/state/session/__tests__/session-test.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-09-20 10:50:33 -0500
committerGitHub <noreply@github.com>2024-09-20 10:50:33 -0500
commitfa6f6f9e473a0dd731ea95210fbd66e0b8c0c283 (patch)
tree1c5166f9b31d3b4967fcf8cd8cdb969d2efa92cb /src/state/session/__tests__/session-test.ts
parentcd88cbeab83169410fff3245505b53122dfe28aa (diff)
downloadvoidsky-fa6f6f9e473a0dd731ea95210fbd66e0b8c0c283.tar.zst
Language fixes (#5384)
* Add some comments

* Decouple language settings

* Normalize on read/write

* Refactor

* Support device locale on app startup

* Cleanup, port to web

* Clean up comments

* Comment

* Try not to mutate

* Protect util handling, update test

* Dedupe array values
Diffstat (limited to 'src/state/session/__tests__/session-test.ts')
-rw-r--r--src/state/session/__tests__/session-test.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state/session/__tests__/session-test.ts b/src/state/session/__tests__/session-test.ts
index 3e22c262c..44c5cf934 100644
--- a/src/state/session/__tests__/session-test.ts
+++ b/src/state/session/__tests__/session-test.ts
@@ -10,6 +10,10 @@ jest.mock('jwt-decode', () => ({
   },
 }))
 
+jest.mock('expo-localization', () => ({
+  getLocales: () => [],
+}))
+
 describe('session', () => {
   it('can log in and out', () => {
     let state = getInitialState([])