summaryrefslogtreecommitdiff
path: root/cli/js/tests/tls_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-24 23:29:14 +0200
committerGitHub <noreply@github.com>2020-04-24 23:29:14 +0200
commit6a37e4426e686028c38d5e915d91e587c5966804 (patch)
treec1bedaeb2e6137fc023b6e125a56d4cba848add2 /cli/js/tests/tls_test.ts
parent6efdacddf30b5247b66596a44226687ff21a8f80 (diff)
BREAKING CHANGE: rename TLS APIs to camel case (#4888)
This commit renames all APIs containing "TLS" to use camel case (connectTLS -> connectTls, etc.)
Diffstat (limited to 'cli/js/tests/tls_test.ts')
-rw-r--r--cli/js/tests/tls_test.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/cli/js/tests/tls_test.ts b/cli/js/tests/tls_test.ts
index e42e477c3..ce44beac0 100644
--- a/cli/js/tests/tls_test.ts
+++ b/cli/js/tests/tls_test.ts
@@ -14,7 +14,7 @@ const decoder = new TextDecoder();
unitTest(async function connectTLSNoPerm(): Promise<void> {
let err;
try {
- await Deno.connectTLS({ hostname: "github.com", port: 443 });
+ await Deno.connectTls({ hostname: "github.com", port: 443 });
} catch (e) {
err = e;
}
@@ -25,7 +25,7 @@ unitTest(async function connectTLSNoPerm(): Promise<void> {
unitTest(async function connectTLSCertFileNoReadPerm(): Promise<void> {
let err;
try {
- await Deno.connectTLS({
+ await Deno.connectTls({
hostname: "github.com",
port: 443,
certFile: "cli/tests/tls/RootCA.crt",
@@ -49,7 +49,7 @@ unitTest(
};
try {
- Deno.listenTLS({
+ Deno.listenTls({
...options,
certFile: "./non/existent/file",
});
@@ -59,7 +59,7 @@ unitTest(
assert(err instanceof Deno.errors.NotFound);
try {
- Deno.listenTLS({
+ Deno.listenTls({
...options,
keyFile: "./non/existent/file",
});
@@ -73,7 +73,7 @@ unitTest(
unitTest({ perms: { net: true } }, function listenTLSNoReadPerm(): void {
let err;
try {
- Deno.listenTLS({
+ Deno.listenTls({
hostname: "localhost",
port: 4500,
certFile: "cli/tests/tls/localhost.crt",
@@ -106,7 +106,7 @@ unitTest(
});
try {
- Deno.listenTLS({
+ Deno.listenTls({
...options,
keyFile: keyFilename,
});
@@ -135,7 +135,7 @@ unitTest(
});
try {
- Deno.listenTLS({
+ Deno.listenTls({
...options,
certFile: certFilename,
});
@@ -153,7 +153,7 @@ unitTest(
const hostname = "localhost";
const port = 4500;
- const listener = Deno.listenTLS({
+ const listener = Deno.listenTls({
hostname,
port,
certFile: "cli/tests/tls/localhost.crt",
@@ -177,7 +177,7 @@ unitTest(
}
);
- const conn = await Deno.connectTLS({
+ const conn = await Deno.connectTls({
hostname,
port,
certFile: "cli/tests/tls/RootCA.pem",
@@ -212,7 +212,7 @@ unitTest(
unitTest(
{ perms: { read: true, net: true } },
- async function startTLS(): Promise<void> {
+ async function startTls(): Promise<void> {
const hostname = "smtp.gmail.com";
const port = 587;
const encoder = new TextEncoder();
@@ -244,7 +244,7 @@ unitTest(
// Received the message that the server is ready to establish TLS
assertEquals(line, "220 2.0.0 Ready to start TLS");
- conn = await Deno.startTLS(conn, { hostname });
+ conn = await Deno.startTls(conn, { hostname });
writer = new BufWriter(conn);
reader = new TextProtoReader(new BufReader(conn));