Skip to content

Commit

Permalink
chore: fix function args test
Browse files Browse the repository at this point in the history
  • Loading branch information
estephinson committed Dec 8, 2023
1 parent ce97326 commit b364cb6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ exports.handler = async () => ({
})
})

test('Serves functions with a `.js` extension', async (t) => {
test('Serves functions with a `.mjs` extension', async (t) => {
await withSiteBuilder('function-mjs', async (builder) => {
const bundlerConfig = args.includes('esbuild') ? { node_bundler: 'esbuild' } : {}

Expand All @@ -623,7 +623,7 @@ exports.handler = async () => ({
},
})
.withContentFile({
path: 'functions/hello.js',
path: 'functions/hello.mjs',
content: `
const handler = async () => {
return {
Expand Down

0 comments on commit b364cb6

Please sign in to comment.