Tests: Fix #connect() test - use correct name end marker

Modifying the `get_reader()` test helper so it uses the correct end marker for reader names (fixes the "#connect()" test).
This commit is contained in:
Roy de Jong
2019-06-06 17:42:21 +02:00
parent 236b76c69b
commit bfceac5312

View File

@@ -39,7 +39,7 @@ describe('Testing CardReader private', function() {
var p = pcsc(); var p = pcsc();
var stub = sinon.stub(p, 'start').callsFake(function(my_cb) { var stub = sinon.stub(p, 'start').callsFake(function(my_cb) {
/* "MyReader\0" */ /* "MyReader\0" */
my_cb(undefined, Buffer.from("MyReader\0")); my_cb(undefined, Buffer.from("MyReader\u0000\u0000"));
}); });
return p; return p;