{"version":3,"sources":["../../src/sections/environment-variables.test.ts"],"sourcesContent":["import { environmentVariablesSection } from './environment-variables.js';\n\ndescribe('EnvironmentVariables', () => {\n  it('should return title only when no items are added', () => {\n    const section = environmentVariablesSection();\n    expect(section.synthesize()).toBe(\n      [\n        '## Environment Variables',\n        '',\n        'To run this project, you will need to add the following environment variables to your .env file',\n      ].join('\\n'),\n    );\n  });\n\n  it('should return correct syntax when one item is added', () => {\n    const section = environmentVariablesSection().add({\n      name: 'API_KEY',\n      defaultValue: 'YOUR-API-KEY-HERE',\n    });\n    expect(section.synthesize()).toBe(\n      [\n        '## Environment Variables',\n        '',\n        'To run this project, you will need to add the following environment variables to your .env file',\n        '',\n        '```bash',\n        'API_KEY=YOUR-API-KEY-HERE',\n        '```',\n      ].join('\\n'),\n    );\n  });\n\n  it('should return correct syntax when multiple items are added', () => {\n    const section = environmentVariablesSection()\n      .add({\n        name: 'LOG_LEVEL',\n        defaultValue: 'INFO',\n      })\n      .add({\n        name: 'API_KEY',\n        defaultValue: 'YOUR-API-KEY-HERE',\n      });\n    expect(section.synthesize()).toBe(\n      [\n        '## Environment Variables',\n        '',\n        'To run this project, you will need to add the following environment variables to your .env file',\n        '',\n        '```bash',\n        'LOG_LEVEL=INFO',\n        'API_KEY=YOUR-API-KEY-HERE',\n        '```',\n      ].join('\\n'),\n    );\n  });\n\n  it('should return the correct syntax when no default value is supplied', () => {\n    const section = environmentVariablesSection().add({\n      name: 'API_KEY',\n    });\n    expect(section.synthesize()).toBe(\n      [\n        '## Environment Variables',\n        '',\n        'To run this project, you will need to add the following environment variables to your .env file',\n        '',\n        '```bash',\n        'API_KEY=',\n        '```',\n      ].join('\\n'),\n    );\n  });\n\n  it('should allow for custom titles', () => {\n    const section = environmentVariablesSection({ title: 'Custom Title' });\n    expect(section.synthesize()).toBe(\n      '## Custom Title\\n\\nTo run this project, you will need to add the following environment variables to your .env file',\n    );\n  });\n});\n"],"mappings":";AAAA,mCAA4C;AAE5C,SAAS,wBAAw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