1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-03 13:10:04 +00:00

test: fixed failed specs

This commit is contained in:
Saad Jutt
2022-08-04 04:01:51 +05:00
parent 5966016853
commit 18052fdbf6
2 changed files with 12 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ const AppContextProvider = (props: { children: ReactNode }) => {
.then((res) => res.data)
.then((data: string) => {
const result =
/<script>document.cookie = '(XSRF-TOKEN=[A-Za-z-0-9; =/]*)'<\/script>/.exec(
/<script>document.cookie = '(XSRF-TOKEN=.*; Max-Age=86400; SameSite=Strict; Path=\/;)'<\/script>/.exec(
data
)?.[1]