Skip to content
Snippets Groups Projects
Select Git revision
  • 1e2978df648095984d4f313c08c989531fb437b3
  • master default protected
  • v1.13.0
  • v1.12.0
  • v1.11.0
  • v1.10.0
  • v1.9.0
  • v1.8.0
  • v1.7.0
  • v1.6.0
  • v1.5.0
  • v1.4.0
  • v1.3.1
  • v1.3.0
  • v1.2.0
  • v1.1.1
  • v1.1.0
  • v1.0.2
  • v1.0.1
  • v1.0.0
20 results

start-gitea.sh

Blame
  • entrypoint.spec.js 545 B
    'use strict'
    
    const { expect } = require('chai')
    const fetch = require('node-fetch')
    const isSvg = require('is-svg')
    
    let server
    before(function() {
      this.timeout('5s')
      server = require('./server')
    })
    
    after('shut down the server', async function() {
      await server.stop()
    })
    
    it('should render a badge', async function() {
      const res = await fetch('http://localhost:1111/badge/fruit-apple-green.svg')
      expect(res.ok).to.be.true
      expect(await res.text())
        .to.satisfy(isSvg)
        .and.to.include('fruit')
        .and.to.include('apple')
    })