Skip to content

Commit

Permalink
docs(migrating): remove duplicate handler in set-cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Nov 16, 2022
1 parent b48b42e commit 09218f3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,11 @@ import { Headers, HttpResponse, rest } from 'msw'
export const handlers = [
rest.get('/resource', () => {
rest.get('/resource', () => {
const headers = new Headers()
headers.append('Set-Cookie', 'sessionId=123')
headers.append('Set-Cookie', 'gtm=en_US')
const headers = new Headers()
headers.append('Set-Cookie', 'sessionId=123')
headers.append('Set-Cookie', 'gtm=en_US')
return HttpResponse.plain(null, { headers })
})
return HttpResponse.plain(null, { headers })
}),
]
```
Expand Down

0 comments on commit 09218f3

Please sign in to comment.