Skip to content

Commit

Permalink
chore: removed netlify graph token from test
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline committed Jul 31, 2023
1 parent bee9ce2 commit 2a59e04
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ test('source image cache pruning', async (t) => {
multiValueQueryStringParameters: {},
multiValueHeaders: {},
isBase64Encoded: false,
body: null,
netlifyGraphToken: undefined
body: null
},
{
functionName: 'ipx',
Expand All @@ -75,17 +74,16 @@ test('source image cache pruning', async (t) => {
logStreamName: '',
memoryLimitInMB: '',
getRemainingTimeInMillis: () => 1000,
done: () => {},
fail: () => {},
succeed: () => {}
done: () => { },
fail: () => { },
succeed: () => { }
}
)
if (response) {
t.is(response.statusCode, 200)
}
}


const cacheSize = readdirSync(join(cacheDir, 'cache')).reduce((acc, filename) => {
const { size } = statSync(join(cacheDir, 'cache', filename))
return acc + size
Expand Down

0 comments on commit 2a59e04

Please sign in to comment.