Skip to content
Snippets Groups Projects
Select Git revision
  • 87f9340ea4b85b6ffada26d40e8a7ca99ef74a03
  • master default protected
  • dwmcallister-patch-1
  • 520-fix-wsl
  • tune-worker-processes
  • alpine-nginxorg
  • 1.29.1
  • 1.29.0
  • 1.28.0
  • 1.27.5
  • 1.27.3
  • 1.27.2
  • 1.27.0
  • 1.26.1
  • 1.26.0
  • 1.25.5
  • 1.25.4
  • 1.25.3
  • 1.25.2
  • 1.25.1
  • 1.25.0
  • 1.24.0
  • 1.23.3
  • 1.23.4
  • 1.23.2
  • 1.22.1
26 results

Dockerfile

Blame
  • entrypoint.spec.js 704 B
    import { expect } from 'chai'
    import isSvg from 'is-svg'
    import got from './core/got-test-client.js'
    
    let serverModule
    before(async function () {
      this.timeout('30s')
      // remove args coming from mocha
      // https://github.com/badges/shields/issues/3365
      process.argv = []
      serverModule = await import('./server.js')
    })
    
    after('shut down the server', async function () {
      await serverModule.server.stop()
    })
    
    it('should render a badge', async function () {
      this.timeout('30s')
      const { statusCode, body } = await got(
        'http://localhost:1111/badge/fruit-apple-green.svg',
      )
      expect(statusCode).to.equal(200)
      expect(body).to.satisfy(isSvg).and.to.include('fruit').and.to.include('apple')
    })