about summary refs log tree commit diff
path: root/__tests__/state/models/root-store.test.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-17 20:40:02 -0600
committerGitHub <noreply@github.com>2023-01-17 20:40:02 -0600
commit065d7ef629c7d991e520fc3dd94cd84b71014902 (patch)
tree89ed72702a5af85eb8508682edc9f2281d23c2e5 /__tests__/state/models/root-store.test.ts
parent61682d5846523038d9a28f851d2bd7c16d27a4a9 (diff)
downloadvoidsky-065d7ef629c7d991e520fc3dd94cd84b71014902.tar.zst
Improve lightbox... and update to React Native 0.71.0 (#49)
* Switch to a better lightbox implementation (close #42)

* Upgrade to react-native 0.71.0

* Update (or remove low-value) tests
Diffstat (limited to '__tests__/state/models/root-store.test.ts')
-rw-r--r--__tests__/state/models/root-store.test.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/__tests__/state/models/root-store.test.ts b/__tests__/state/models/root-store.test.ts
index ccaa6f83f..56eec9cdf 100644
--- a/__tests__/state/models/root-store.test.ts
+++ b/__tests__/state/models/root-store.test.ts
@@ -16,19 +16,6 @@ describe('rootStore', () => {
     jest.clearAllMocks()
   })
 
-  it('resolveName() handles inputs correctly', () => {
-    const spyMethod = jest
-      .spyOn(rootStore.api.com.atproto.handle, 'resolve')
-      .mockResolvedValue({success: true, headers: {}, data: {did: 'testdid'}})
-
-    rootStore.resolveName('teststring')
-    expect(spyMethod).toHaveBeenCalledWith({handle: 'teststring'})
-
-    expect(rootStore.resolveName('')).rejects.toThrow('Invalid handle: ""')
-
-    expect(rootStore.resolveName('did:123')).resolves.toReturnWith('did:123')
-  })
-
   it('should call the clearAll() resets state correctly', () => {
     rootStore.clearAll()
 
@@ -68,6 +55,5 @@ describe('rootStore', () => {
     expect(rootStore.me.description).toEqual('')
     expect(rootStore.me.avatar).toEqual('')
     expect(rootStore.me.notificationCount).toEqual(0)
-    expect(rootStore.me.memberships).toBeUndefined()
   })
 })