Skip to content
Snippets Groups Projects
Select Git revision
  • aeb82068bef80b31bb14284915dfdbca1a5ffc11
  • develop default protected
  • feature/module-gpiod
  • 0.5.6
  • 0.5.5
  • 0.5.4
  • 0.5.3
  • 0.5.2
  • 0.5.1
  • 0.5.0
  • 0.4.1
  • 0.4.0
  • 0.3.2
  • 0.3.1
  • 0.3.0
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5
  • 0.2.4
  • 0.2.3
  • 0.2.2
  • 0.2.1
23 results

test_gpio_interrupt.py

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