text: 'use strict'
  
  const { isVPlusDottedVersionAtLeastOne } = require('../test-validators')
  const t = (module.exports = require('../tester').createServiceTester())
  
  t.create('version (valid)')
    .get('/adios2.json')
    .expectBadge({
      label: 'spack',
      message: isVPlusDottedVersionAtLeastOne,
    })
  
  t.create('version (not found)')
    .get('/not-a-package.json')
    .expectBadge({ label: 'spack', message: 'package not found' })
  