...
|
...
|
@@ -85,11 +85,34 @@ describe('index.js', function() { |
|
|
|
|
|
setRet(val);
|
|
|
|
|
|
let index = rewire("../../src")
|
|
|
let index = rewire("../../src");
|
|
|
|
|
|
index.__set__('setFilter', function() {});
|
|
|
index.__set__('setAntStayTime', function() {});
|
|
|
index.__set__('setFrequency', function() {});
|
|
|
index.__set__('setAntStayTime', function(connector, param) {
|
|
|
process.nextTick(function() {
|
|
|
connector.done('setAntStayTime', ret);
|
|
|
});
|
|
|
});
|
|
|
index.__set__('setFrequencyRegion', function(connector, param) {
|
|
|
process.nextTick(function() {
|
|
|
connector.done('setFrequencyRegion', ret);
|
|
|
});
|
|
|
});
|
|
|
index.__set__('setSpeedMode', function(connector, param) {
|
|
|
process.nextTick(function() {
|
|
|
connector.done('setSpeedMode', ret);
|
|
|
});
|
|
|
});
|
|
|
index.__set__('setTagGroup', function(connector, param) {
|
|
|
process.nextTick(function() {
|
|
|
connector.done('setTagGroup', ret);
|
|
|
});
|
|
|
});
|
|
|
index.__set__('setFrequency', function(connector, param) {
|
|
|
process.nextTick(function() {
|
|
|
connector.done('setFrequency', ret);
|
|
|
});
|
|
|
});
|
|
|
index.__set__('setInventoryTime', function(connector, param) {
|
|
|
process.nextTick(function() {
|
|
|
connector.done('setInventoryTime', ret);
|
...
|
...
|
|