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-12-09 13:43:16 -0600
committerGitHub <noreply@github.com>2024-12-09 13:43:16 -0600
commitbc4b4a3cfec482672ee8bc8cebd0351f29f0a3c8 (patch)
tree470f5b9bc0857b5c5e249bc447b55fc102c7edbc /src/state/session/__tests__/session-test.ts
parent63c0c7e6211e35f7388dfbc5c5509e727dd4203e (diff)
downloadvoidsky-bc4b4a3cfec482672ee8bc8cebd0351f29f0a3c8.tar.zst
Add `isSelfHosted` to `SessionAccount` (#7028)
* Add isSelfHosted to SessionAccount

* Update snaps
Diffstat (limited to 'src/state/session/__tests__/session-test.ts')
-rw-r--r--src/state/session/__tests__/session-test.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/state/session/__tests__/session-test.ts b/src/state/session/__tests__/session-test.ts
index 44c5cf934..4c58c6323 100644
--- a/src/state/session/__tests__/session-test.ts
+++ b/src/state/session/__tests__/session-test.ts
@@ -61,6 +61,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-1",
             "service": "https://alice.com/",
@@ -100,6 +101,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": undefined,
             "service": "https://alice.com/",
@@ -152,6 +154,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-1",
             "service": "https://alice.com/",
@@ -202,6 +205,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "bob.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "bob-refresh-jwt-1",
             "service": "https://bob.com/",
@@ -216,6 +220,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-1",
             "service": "https://alice.com/",
@@ -266,6 +271,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice-updated.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
@@ -280,6 +286,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "bob.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "bob-refresh-jwt-1",
             "service": "https://bob.com/",
@@ -328,6 +335,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "jay.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "jay-refresh-jwt-1",
             "service": "https://jay.com/",
@@ -342,6 +350,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice-updated.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
@@ -356,6 +365,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "bob.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "bob-refresh-jwt-1",
             "service": "https://bob.com/",
@@ -399,6 +409,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "jay.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": undefined,
             "service": "https://jay.com/",
@@ -413,6 +424,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice-updated.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": undefined,
             "service": "https://alice.com/",
@@ -427,6 +439,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "bob.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": undefined,
             "service": "https://bob.com/",
@@ -488,6 +501,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": undefined,
             "service": "https://alice.com/",
@@ -535,6 +549,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
@@ -651,6 +666,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "bob.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "bob-refresh-jwt-1",
             "service": "https://bob.com/",
@@ -743,6 +759,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "bob.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": undefined,
             "service": "https://bob.com/",
@@ -757,6 +774,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-1",
             "service": "https://alice.com/",
@@ -832,6 +850,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice-updated.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
@@ -885,6 +904,7 @@ describe('session', () => {
             "emailAuthFactor": true,
             "emailConfirmed": true,
             "handle": "alice-updated.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-3",
             "service": "https://alice.com/",
@@ -938,6 +958,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice-updated.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-4",
             "service": "https://alice.com/",
@@ -1102,6 +1123,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "bob.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "bob-refresh-jwt-1",
             "service": "https://bob.com/",
@@ -1116,6 +1138,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice-updated.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
@@ -1167,6 +1190,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "bob-updated.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "bob-refresh-jwt-2",
             "service": "https://bob.com/",
@@ -1181,6 +1205,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice-updated.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
@@ -1332,6 +1357,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "alice-refresh-jwt-1",
             "service": "https://alice.com/",
@@ -1397,6 +1423,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": undefined,
             "service": "https://alice.com/",
@@ -1462,6 +1489,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "alice.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": undefined,
             "service": "https://alice.com/",
@@ -1559,6 +1587,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "jay.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "jay-refresh-jwt-1",
             "service": "https://jay.com/",
@@ -1573,6 +1602,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "bob.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "bob-refresh-jwt-2",
             "service": "https://alice.com/",
@@ -1622,6 +1652,7 @@ describe('session', () => {
             "emailAuthFactor": false,
             "emailConfirmed": false,
             "handle": "clarence.test",
+            "isSelfHosted": true,
             "pdsUrl": undefined,
             "refreshJwt": "clarence-refresh-jwt-2",
             "service": "https://clarence.com/",