Skip to content

Commit

Permalink
test: add test to ensure getCipherList throws appropriately
Browse files Browse the repository at this point in the history
per Julien's request: nodejs#14572 (comment)
  • Loading branch information
jasnell committed Apr 14, 2015
1 parent abafbce commit faab984
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/simple/test-tls-cipher-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ doTest('ABC', 'ABC', 1); // test the --cipher-list switch
doTest(tls.getLegacyCiphers(ver), ver, 2);
doTest(tls.getLegacyCiphers(ver), ver, 3);
});

assert.throws(function() {tls.getLegacyCiphers('foo');});
assert.doesNotThrow(function() {tls.getLegacyCiphers('v0.10.38');});

0 comments on commit faab984

Please sign in to comment.