Просмотр исходного кода

chore(cookies): Add config store test for CSRF and superuser cookie names (#40228)

Alberto Leal 2 лет назад
Родитель
Сommit
b493bc87e3
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      static/app/stores/configStore.spec.tsx

+ 8 - 0
static/app/stores/configStore.spec.tsx

@@ -9,4 +9,12 @@ describe('ConfigStore', () => {
       sentryUrl: 'https://sentry.io',
     });
   });
+
+  it('should have cookie names', () => {
+    const csrfCookieName = ConfigStore.get('csrfCookieName');
+    expect(csrfCookieName).toEqual('csrf-test-cookie');
+
+    const superUserCookieName = ConfigStore.get('superUserCookieName');
+    expect(superUserCookieName).toEqual('su-test-cookie');
+  });
 });