import LambdaContext from '../LambdaContext.js'

describe('LambdaContext', () => {
  test('should create LambdaContext with correct values', () => {
    const functionName = 'foo'
    const memorySize = 512
    const requestId = 'abc123'

    const lambdaContext = new LambdaContext(functionName, memorySize)
    const context = lambdaContext.create(requestId)

    const expected = {
      awsRequestId: `abc123`,
      callbackWaitsForEmptyEventLoop: true,
      clientContext: undefined,
      functionName: 'foo',
      functionVersion: `$LATEST`,
      identity: undefined,
      invokedFunctionArn: `offline_invokedFunctionArn_for_foo`,
      logGroupName: `offline_logGroupName_for_foo`,
      logStreamName: `offline_logStreamName_for_foo`,
      memoryLimitInMB: '512',
    }

    expect(context).toEqual(expected)
  })
})

@@ -402,16 +402,16 @@
 Id: 
-%60
+'
 abc123
-%60
+'
 ,%0A  
@@ -538,17 +538,17 @@
 on: 
-%60
+'
 $LATEST
-%60
+'
 ,%0A  
@@ -598,17 +598,17 @@
 ionArn: 
-%60
+'
 offline_
@@ -625,33 +625,33 @@
 ctionArn_for_foo
-%60
+'
 ,%0A      logGroup
@@ -652,25 +652,25 @@
 gGroupName: 
-%60
+'
 offline_logG
@@ -677,33 +677,33 @@
 roupName_for_foo
-%60
+'
 ,%0A      logStrea
@@ -709,17 +709,17 @@
 amName: 
-%60
+'
 offline_
@@ -743,9 +743,9 @@
 _foo
-%60
+'
 ,%0A  

Use single quotes