Skip to content

Commit c8e728c

Browse files
committed
fix: lint
1 parent 34257d8 commit c8e728c

File tree

2 files changed

+23
-12
lines changed

2 files changed

+23
-12
lines changed

test/helpers/functions.spec.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,57 +9,57 @@ describeCwdTmpDir('api route file analysis', () => {
99
expect(new Set(configs.map(({ includedFiles, ...rest }) => rest))).toEqual(
1010
new Set([
1111
{
12-
functionName: "_api_og-handler",
12+
functionName: '_api_og-handler',
1313
compiled: 'pages/api/og.js',
1414
config: {
1515
runtime: 'edge',
1616
},
1717
route: '/api/og',
1818
},
1919
{
20-
functionName: "_api_enterPreview-handler",
20+
functionName: '_api_enterPreview-handler',
2121
compiled: 'pages/api/enterPreview.js',
2222
config: {},
2323
route: '/api/enterPreview',
2424
},
2525
{
26-
functionName: "_api_exitPreview-handler",
26+
functionName: '_api_exitPreview-handler',
2727
compiled: 'pages/api/exitPreview.js',
2828
config: {},
2929
route: '/api/exitPreview',
3030
},
3131
{
32-
functionName: "_api_hello-handler",
32+
functionName: '_api_hello-handler',
3333
compiled: 'pages/api/hello.js',
3434
config: {},
3535
route: '/api/hello',
3636
},
3737
{
38-
functionName: "_api_shows_params-SPLAT-handler",
38+
functionName: '_api_shows_params-SPLAT-handler',
3939
compiled: 'pages/api/shows/[...params].js',
4040
config: {},
4141
route: '/api/shows/[...params]',
4242
},
4343
{
44-
functionName: "_api_shows_id-PARAM-handler",
44+
functionName: '_api_shows_id-PARAM-handler',
4545
compiled: 'pages/api/shows/[id].js',
4646
config: {},
4747
route: '/api/shows/[id]',
4848
},
4949
{
50-
functionName: "_api_hello-background-background",
50+
functionName: '_api_hello-background-background',
5151
compiled: 'pages/api/hello-background.js',
5252
config: { type: 'experimental-background' },
5353
route: '/api/hello-background',
5454
},
5555
{
56-
functionName: "_api_hello-scheduled-handler",
56+
functionName: '_api_hello-scheduled-handler',
5757
compiled: 'pages/api/hello-scheduled.js',
5858
config: { schedule: '@hourly', type: 'experimental-scheduled' },
5959
route: '/api/hello-scheduled',
6060
},
6161
{
62-
functionName: "_api_revalidate-handler",
62+
functionName: '_api_revalidate-handler',
6363
compiled: 'pages/api/revalidate.js',
6464
config: {},
6565
route: '/api/revalidate',
@@ -75,13 +75,13 @@ describeCwdTmpDir('api route file analysis', () => {
7575
expect(new Set(configs.map(({ includedFiles, ...rest }) => rest))).toEqual(
7676
new Set([
7777
{
78-
functionName: "_api_hello-background-background",
78+
functionName: '_api_hello-background-background',
7979
compiled: 'pages/api/hello-background.js',
8080
config: { type: 'experimental-background' },
8181
route: '/api/hello-background',
8282
},
8383
{
84-
functionName: "_api_hello-scheduled-handler",
84+
functionName: '_api_hello-scheduled-handler',
8585
compiled: 'pages/api/hello-scheduled.js',
8686
config: { schedule: '@hourly', type: 'experimental-scheduled' },
8787
route: '/api/hello-scheduled',

test/index.spec.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@ import process from 'process'
44

55
import type { NetlifyPluginOptions } from '@netlify/build'
66
import Chance from 'chance'
7-
import { writeJSON, unlink, existsSync, readFileSync, ensureDir, readJson, pathExists, writeFile, move, copy } from 'fs-extra'
7+
import {
8+
writeJSON,
9+
unlink,
10+
existsSync,
11+
readFileSync,
12+
ensureDir,
13+
readJson,
14+
pathExists,
15+
writeFile,
16+
move,
17+
copy,
18+
} from 'fs-extra'
819
import { join, relative } from 'pathe'
920
import { dir as getTmpDir } from 'tmp-promise'
1021

0 commit comments

Comments
 (0)