summaryrefslogtreecommitdiff
path: root/std/bytes
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /std/bytes
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/bytes')
-rw-r--r--std/bytes/README.md4
-rw-r--r--std/bytes/test.ts8
2 files changed, 6 insertions, 6 deletions
diff --git a/std/bytes/README.md b/std/bytes/README.md
index 77f3fdfc8..b1edac1e6 100644
--- a/std/bytes/README.md
+++ b/std/bytes/README.md
@@ -15,7 +15,7 @@ import { findIndex } from "https://deno.land/std/bytes/mod.ts";
findIndex(
new Uint8Array([1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 3]),
- new Uint8Array([0, 1, 2])
+ new Uint8Array([0, 1, 2]),
);
// => returns 2
@@ -30,7 +30,7 @@ import { findLastIndex } from "https://deno.land/std/bytes/mod.ts";
findLastIndex(
new Uint8Array([0, 1, 2, 0, 1, 2, 0, 1, 3]),
- new Uint8Array([0, 1, 2])
+ new Uint8Array([0, 1, 2]),
);
// => returns 3
diff --git a/std/bytes/test.ts b/std/bytes/test.ts
index 25af2a35b..6dffad17f 100644
--- a/std/bytes/test.ts
+++ b/std/bytes/test.ts
@@ -17,7 +17,7 @@ import { encode, decode } from "../encoding/utf8.ts";
Deno.test("[bytes] findIndex1", () => {
const i = findIndex(
new Uint8Array([1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 3]),
- new Uint8Array([0, 1, 2])
+ new Uint8Array([0, 1, 2]),
);
assertEquals(i, 2);
});
@@ -35,7 +35,7 @@ Deno.test("[bytes] findIndex3", () => {
Deno.test("[bytes] findLastIndex1", () => {
const i = findLastIndex(
new Uint8Array([0, 1, 2, 0, 1, 2, 0, 1, 3]),
- new Uint8Array([0, 1, 2])
+ new Uint8Array([0, 1, 2]),
);
assertEquals(i, 3);
});
@@ -80,12 +80,12 @@ Deno.test("[bytes] repeat", () => {
repeat(new TextEncoder().encode(input as string), count as number);
},
Error,
- errMsg as string
+ errMsg as string,
);
} else {
const newBytes = repeat(
new TextEncoder().encode(input as string),
- count as number
+ count as number,
);
assertEquals(new TextDecoder().decode(newBytes), output);