mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-07 19:34:17 +00:00
Remove blink tests
Blink tests really are testing functionality of the dependency and not any local behavior.
This commit is contained in:
parent
209b409129
commit
6ecff9d5b4
@ -1,22 +0,0 @@
|
||||
import { promises as fs } from 'fs';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import blink = require('~/lib/blink');
|
||||
import constants = require('~/lib/constants');
|
||||
|
||||
describe('blink', () => {
|
||||
it('is a blink function', () => expect(blink).to.be.a('function'));
|
||||
|
||||
it('has a pattern property with start and stop functions', () => {
|
||||
expect(blink.pattern.start).to.be.a('function');
|
||||
expect(blink.pattern.stop).to.be.a('function');
|
||||
});
|
||||
|
||||
it('writes to a file that represents the LED, and writes a 0 at the end to turn the LED off', async () => {
|
||||
// TODO: Fix the typings for blink
|
||||
await (blink as any)(1);
|
||||
const contents = await fs.readFile(constants.ledFile);
|
||||
|
||||
expect(contents.toString()).to.equal('0');
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user