imap-client
Advanced tools
Comparing version 0.14.2 to 0.14.3
{ | ||
"name": "imap-client", | ||
"version": "0.14.2", | ||
"version": "0.14.3", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "pretest": "dir=$(pwd) && cd node_modules/browserbox/node_modules/tcp-socket/node_modules/node-forge/ && npm install && npm run minify && cd $dir", |
@@ -928,3 +928,3 @@ (function(factory) { | ||
add.push(ANSWERED_FLAG); | ||
} else if (options.answered === true) { | ||
} else if (options.answered === false) { | ||
remove.push(ANSWERED_FLAG); | ||
@@ -931,0 +931,0 @@ } |
@@ -665,2 +665,16 @@ (function(factory) { | ||
it('should update flags and skip add', function(done) { | ||
bboxMock.setFlags.withArgs('123:123', { | ||
remove: ['\\Answered'] | ||
}).returns(resolves()); | ||
imap.updateFlags({ | ||
path: 'INBOX', | ||
uid: 123, | ||
answered: false | ||
}).then(function() { | ||
expect(bboxMock.setFlags.calledOnce).to.be.true; | ||
}).then(done); | ||
}); | ||
it('should update flags and skip remove', function(done) { | ||
@@ -667,0 +681,0 @@ bboxMock.setFlags.withArgs('123:123', { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116071
2468