forked from alexbain/lirc_node
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathirrecord.js
More file actions
32 lines (27 loc) · 729 Bytes
/
irrecord.js
File metadata and controls
32 lines (27 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var lirc_node = require('../'),
assert = require('assert'),
sinon = require('sinon');
describe('IRRecord', function() {
var irrecord = new lirc_node.IRRecord();
describe('#list', function() {
it('should call startIRRecord and call the callback', function(done) {
irrecord.startIRRecord(function() {
done();
});
});
});
describe('#send_once', function() {
it('should call the callback', function(done) {
irrecord.finishIRRecord(function() {
done();
});
});
});
describe('#send_once', function() {
it('should call the callback', function(done) {
irrecord.learnDeviceCharacteristics(function() {
done();
});
});
});
});