'use strict' const Interrupt = require('../src/interrupt'), expect = require('chai').expect // TODO finish simple test of a pin as interrupt describe( 'Testing ', function () { hooks() interrupt() someothertests() }) //****************** TESTS ********************** function interrupt() { it('==> tests an interrupt', async function () { expect(result, 'test failed').to.equal('expectedresult') }) } function someothertests() { it('==> test something', async function () { let result = await someasyncfunction() expect(result, 'test failed').to.equal('expectedresult') await pause(1000) }) } function hooks() { before(async() => { }) beforeEach(async() => {}) after(async() => {}) }