Skip to content
Snippets Groups Projects
Select Git revision
  • ea451e7e498c9c3e052c24644f93a2bbdea9b955
  • main default protected
  • release/v2.6.x
  • dependabot/github_actions/ci-641206964f
  • conform-k8s-1.33
  • rfc-external-artifact
  • release/v2.5.x
  • release/v2.4.x
  • remove-notation-validation
  • release/v2.3.x
  • release/v2.2.x
  • RFC
  • fix-commit-log
  • flux-audit
  • release/v2.1.x
  • context-ns
  • ksm-dashboard
  • rfc-passwordless-git-auth
  • release/v2.0.x
  • rfc-gating
  • release/v0.27.4
  • v2.6.4 protected
  • v2.6.3 protected
  • v2.6.2 protected
  • v2.6.1 protected
  • v2.6.0 protected
  • v2.5.1 protected
  • v2.5.0 protected
  • v2.4.0 protected
  • v2.3.0 protected
  • v2.2.3 protected
  • v2.2.2 protected
  • v2.2.1 protected
  • v2.2.0 protected
  • v2.1.2 protected
  • v2.1.1 protected
  • v2.1.0 protected
  • v2.0.1 protected
  • v2.0.0 protected
  • v2.0.0-rc.5 protected
  • v2.0.0-rc.4 protected
41 results

bootstrap.go

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')
    })