Skip to content

Commit 29e5f0b

Browse files
committed
test: use comma in fetch tag
1 parent 063027c commit 29e5f0b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/fixtures/server-components/app/api/on-demand-revalidate/tag/route.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from 'next/server'
22
import { revalidateTag } from 'next/cache'
33

44
export async function GET(request: NextRequest) {
5-
revalidateTag('collection')
5+
revalidateTag('collection,with-comma')
66
return NextResponse.json({ revalidated: true, now: new Date().toISOString() })
77
}
88

tests/fixtures/server-components/app/static-fetch-1/page.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
async function getData() {
22
const res = await fetch(`https://strangerthings-quotes.vercel.app/api/quotes`, {
3-
next: { tags: ['collection'] },
3+
next: { tags: ['collection,with-comma'] },
44
})
55
return res.json()
66
}

tests/fixtures/server-components/app/static-fetch-2/page.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
async function getData() {
22
const res = await fetch(`https://strangerthings-quotes.vercel.app/api/quotes`, {
3-
next: { tags: ['collection'] },
3+
next: { tags: ['collection,with-comma'] },
44
})
55
return res.json()
66
}

tests/fixtures/server-components/app/static-fetch-3/page.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
async function getData() {
22
const res = await fetch(`https://strangerthings-quotes.vercel.app/api/quotes`, {
3-
next: { tags: ['collection'] },
3+
next: { tags: ['collection,with-comma'] },
44
})
55
return res.json()
66
}

0 commit comments

Comments
 (0)