[ci] format
This commit is contained in:
parent
54b33d50fd
commit
6fa6369678
3 changed files with 4 additions and 6 deletions
|
@ -15,11 +15,10 @@ describe('Missing output config', () => {
|
||||||
let error = undefined;
|
let error = undefined;
|
||||||
try {
|
try {
|
||||||
await fixture.build();
|
await fixture.build();
|
||||||
} catch(err) {
|
} catch (err) {
|
||||||
error = err;
|
error = err;
|
||||||
}
|
}
|
||||||
expect(error).to.not.be.equal(undefined);
|
expect(error).to.not.be.equal(undefined);
|
||||||
expect(error.message).to.include(`output: "server"`);
|
expect(error.message).to.include(`output: "server"`);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,8 @@ export default function vercelEdge(): AstroIntegration {
|
||||||
setAdapter(getAdapter());
|
setAdapter(getAdapter());
|
||||||
_config = config;
|
_config = config;
|
||||||
|
|
||||||
if(config.output === 'static') {
|
if (config.output === 'static') {
|
||||||
throw new Error(`
|
throw new Error(`
|
||||||
[@astrojs/vercel] \`output: "server"\` is required to use the serverless adapter.
|
[@astrojs/vercel] \`output: "server"\` is required to use the serverless adapter.
|
||||||
|
|
||||||
`);
|
`);
|
||||||
|
|
|
@ -15,11 +15,10 @@ describe('Missing output config', () => {
|
||||||
let error = undefined;
|
let error = undefined;
|
||||||
try {
|
try {
|
||||||
await fixture.build();
|
await fixture.build();
|
||||||
} catch(err) {
|
} catch (err) {
|
||||||
error = err;
|
error = err;
|
||||||
}
|
}
|
||||||
expect(error).to.not.be.equal(undefined);
|
expect(error).to.not.be.equal(undefined);
|
||||||
expect(error.message).to.include(`output: "server"`);
|
expect(error.message).to.include(`output: "server"`);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue