<commit_before>import assert from 'node:assert'
import InvocationsController from '../../../routes/invocations/InvocationsController.js'
import LambdaFunctionThatReturnsJSONObject from '../../fixtures/Lambda/LambdaFunctionThatReturnsJSONObject.fixture.js'
import LambdaFunctionThatReturnsNativeString from '../../fixtures/Lambda/LambdaFunctionThatReturnsNativeString.fixture.js'

describe.only('InvocationController', () => {
  const functionName = 'foo'

  describe('when event type is "RequestResponse"', () => {
    const eventType = 'RequestResponse'

    it('should return json object if lambda response is json', async () => {
      const expected = {
        Payload: {
          foo: 'bar',
        },
        StatusCode: 200,
      }
<commit_msg>test: remove .only<commit_after>import assert from 'node:assert'
import InvocationsController from '../../../routes/invocations/InvocationsController.js'
import LambdaFunctionThatReturnsJSONObject from '../../fixtures/Lambda/LambdaFunctionThatReturnsJSONObject.fixture.js'
import LambdaFunctionThatReturnsNativeString from '../../fixtures/Lambda/LambdaFunctionThatReturnsNativeString.fixture.js'

describe('InvocationController', () => {
  const functionName = 'foo'

  describe('when event type is "RequestResponse"', () => {
    const eventType = 'RequestResponse'

    it('should return json object if lambda response is json', async () => {
      const expected = {
        Payload: {
          foo: 'bar',
        },
        StatusCode: 200,
      }

{'fraction_non_alphanumeric': 0.123841059602649, 'fraction_numerical': 0.003973509933774834, 'mean_word_length': 3.8274760383386583, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7590972', 'n_tokens_mistral': 401, 'n_tokens_neox': 388, 'n_words': 92}