Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit f1df277

Browse files
fix(netlify): tests (#96)
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
1 parent 446be86 commit f1df277

5 files changed

Lines changed: 9 additions & 3 deletions

File tree

.changeset/stale-boats-joke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/netlify': minor
3+
---
4+
5+
Fixes an issue where this package could not be installed alongside Astro 4.0.

packages/netlify/test/functions/fixtures/base64-response/src/pages/font.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
export function get() {
2+
export function GET() {
33
const buffer = Buffer.from('base64 test font', 'utf-8')
44

55
return new Response(buffer, {

packages/netlify/test/functions/fixtures/base64-response/src/pages/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
export function get() {
2+
export function GET() {
33
const buffer = Buffer.from('base64 test string', 'utf-8')
44

55
return new Response(buffer, {

packages/netlify/test/functions/fixtures/cookies/src/pages/login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
export function post() {
2+
export function POST() {
33
const headers = new Headers();
44
headers.append('Set-Cookie', `foo=foo; HttpOnly`);
55
headers.append('Set-Cookie', `bar=bar; HttpOnly`);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="astro/client" />

0 commit comments

Comments
 (0)