uci-interrupt/test/interrupt.test.js

47 lines
753 B
JavaScript
Raw Normal View History

2017-01-11 15:11:34 -08:00
'use strict'
2017-05-26 08:15:54 -07:00
const
Interrupt = require('../src/interrupt'),
expect = require('chai').expect
2017-01-21 12:23:45 -08:00
// TODO finish simple test of a pin as interrupt
2017-05-26 08:15:54 -07:00
describe(
'Testing ',
function () {
hooks()
interrupt()
someothertests()
})
2017-01-11 15:11:34 -08:00
2017-05-26 08:15:54 -07:00
//****************** TESTS **********************
function interrupt() {
it('==> tests an interrupt', async function () {
2017-01-11 15:11:34 -08:00
expect(result, 'test failed').to.equal('expectedresult')
2017-01-11 15:11:34 -08:00
})
2017-05-26 08:15:54 -07:00
}
function someothertests() {
it('==> test something', async function () {
2017-05-26 08:15:54 -07:00
let result = await someasyncfunction()
expect(result, 'test failed').to.equal('expectedresult')
await pause(1000)
2017-05-26 08:15:54 -07:00
})
2017-05-26 08:15:54 -07:00
}
function hooks() {
before(async() => {
})
beforeEach(async() => {})
2017-01-21 12:21:16 -08:00
after(async() => {})
2017-01-21 23:48:17 -08:00
}