import { describe, expect, it } from 'vitest'

import generatedWindowsValidationSummary from '../shared/generated/windows-package-validation-summary.json'
import { getReleasePlatformValidationSummary } from '../shared/package-validation'

describe('getReleasePlatformValidationSummary', () => {
  it('reads the current Windows packaged-validation truth from the generated higher-dimensional report summary', () => {
    expect(getReleasePlatformValidationSummary('windows')).toEqual(generatedWindowsValidationSummary)
  })

  it('keeps non-Windows release lanes free of fake packaged-validation summaries', () => {
    expect(getReleasePlatformValidationSummary('macos')).toBeNull()
    expect(getReleasePlatformValidationSummary('linux')).toBeNull()
  })
})
