[ci] format
This commit is contained in:
parent
fca58cfd91
commit
8ce5b824ab
2 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
import './edge-shim.js';
|
|
||||||
import type { SSRManifest } from 'astro';
|
import type { SSRManifest } from 'astro';
|
||||||
import { App } from 'astro/app';
|
import { App } from 'astro/app';
|
||||||
|
import './edge-shim.js';
|
||||||
|
|
||||||
export function createExports(manifest: SSRManifest) {
|
export function createExports(manifest: SSRManifest) {
|
||||||
const app = new App(manifest);
|
const app = new App(manifest);
|
||||||
|
|
|
@ -10,7 +10,9 @@ Deno.test({
|
||||||
name: 'Edge Basics',
|
name: 'Edge Basics',
|
||||||
async fn() {
|
async fn() {
|
||||||
let close = await runBuild('./fixtures/edge-basic/');
|
let close = await runBuild('./fixtures/edge-basic/');
|
||||||
const { default: handler } = await import('./fixtures/edge-basic/.netlify/edge-functions/entry.js');
|
const { default: handler } = await import(
|
||||||
|
'./fixtures/edge-basic/.netlify/edge-functions/entry.js'
|
||||||
|
);
|
||||||
const response = await handler(new Request('http://example.com/'));
|
const response = await handler(new Request('http://example.com/'));
|
||||||
assertEquals(response.status, 200);
|
assertEquals(response.status, 200);
|
||||||
const html = await response.text();
|
const html = await response.text();
|
||||||
|
|
Loading…
Add table
Reference in a new issue