We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec844b6 commit 3bf782aCopy full SHA for 3bf782a
test/unit/emailjs-imap-client-imap-test.js
@@ -516,6 +516,27 @@
516
client._clientQueue[0].callback({});
517
}, 0);
518
});
519
+
520
+ it('should store valueAsString option in the command', (done) => {
521
+ sinon.stub(client, '_sendRequest');
522
523
+ client._tagCounter = 100;
524
+ client._clientQueue = [];
525
+ client._canSend = false;
526
527
+ client.enqueueCommand({
528
+ command: 'abc',
529
+ valueAsString: false
530
+ }, ['def'], {
531
+ t: 1
532
+ }).then(() => {
533
+ expect(client._clientQueue[0].request.valueAsString).to.equal(false);
534
+ }).then(done).catch(done);
535
536
+ setTimeout(() => {
537
+ client._clientQueue[0].callback({});
538
+ }, 0);
539
+ });
540
541
542
describe('#_sendRequest', () => {
0 commit comments