Skip to content
Snippets Groups Projects
Select Git revision
  • 49cc8d03b80bcee3e848f3dad6bd6bc39fe5b19c
  • master default protected
  • spilo-wale-removal
  • dependabot/go_modules/golang.org/x/oauth2-0.27.0
  • bug-upgrade
  • gh-pages
  • patroni-4-integration
  • remove-zappr
  • ignore-auto-upgrade
  • arm-pooler
  • update-go-and-deps
  • pluralsh-liveness-probe
  • silenium-dev-master
  • bump-v1.9.1
  • enable-query-logging
  • bump-v1.7.1
  • resize-mixed-mode
  • instance-annotation
  • bump-v1.8.2
  • clone-bucket-prefix
  • bump-v1.8.1
  • v1.14.0
  • v1.13.0
  • v1.12.2
  • v1.12.1
  • v1.12.0
  • v1.11.0
  • v1.10.1
  • v1.10.0
  • v1.9.0
  • v1.8.2
  • v1.8.1
  • v1.8.0
  • v1.7.1
  • v1.7.0
  • v1.6.3
  • v1.6.2
  • v1.6.1
  • v1.6.0
  • v1.5.0
  • v1.4.0
41 results

ideas.md

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