text: const BenchmarkSource = require('../../src/nlp/process/benchmark-source')
  const { Config } = require('bespoken-batch-tester')
  
  describe('souce loads records', () => {
    beforeEach(() => {
      Config.reset()
    })
  
    test('source handles google platform correctly', async () => {
      Config.loadFromJSON({
        customer: 'bespoken',
        job: 'job-is-google',
        source: 'src/benchmark-source',
        sourceFile: 'test/data/sample-questions.json'
      })
      const source = new BenchmarkSource()
      const records = await source.loadAll()
      expect(records.length).toBe(2)
      expect(records[0].utterance).toBe('<speak> hey google <break time="1s" /> when did bear bryant coach kentucky? </speak>')
      expect(records[0].outputField('platform')).toBe('google')
    })
  
    test('source handles google platform correctly with actual questions', async () => {
      Config.loadFromJSON({
        customer: 'bespoken',
        job: 'job-is-google',
        source: 'src/benchmark-source',
        sourceFile: 'input/datasets/comqa.json'
      })
      const source = new BenchmarkSource()
      const records = await source.loadAll()
      expect(records.length).toBe(966)
    })
  })
  