diff options
author | Samrith Shankar <samrith-s@users.noreply.github.com> | 2020-03-20 14:38:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 09:38:34 -0400 |
commit | 798904b0f2ed0c7284b67bba2f125f406b5850de (patch) | |
tree | 5aba8d35aa8984aa778c894258bcaed56f1ce17c /std/encoding/binary_test.ts | |
parent | 35f6e2e45ddb96524a6bdf54b0a6155caa88d5e0 (diff) |
Add require-await lint rule (#4401)
Diffstat (limited to 'std/encoding/binary_test.ts')
-rw-r--r-- | std/encoding/binary_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/std/encoding/binary_test.ts b/std/encoding/binary_test.ts index 936fcbb63..54f8cbded 100644 --- a/std/encoding/binary_test.ts +++ b/std/encoding/binary_test.ts @@ -24,12 +24,12 @@ Deno.test(async function testGetNBytes(): Promise<void> { Deno.test(async function testGetNBytesThrows(): Promise<void> { const data = new Uint8Array([1, 2, 3, 4]); const buff = new Deno.Buffer(data.buffer); - assertThrowsAsync(async () => { + await assertThrowsAsync(async () => { await getNBytes(buff, 8); }, Deno.errors.UnexpectedEof); }); -Deno.test(async function testPutVarbig(): Promise<void> { +Deno.test(function testPutVarbig(): void { const buff = new Uint8Array(8); putVarbig(buff, 0xffeeddccbbaa9988n); assertEquals( @@ -38,7 +38,7 @@ Deno.test(async function testPutVarbig(): Promise<void> { ); }); -Deno.test(async function testPutVarbigLittleEndian(): Promise<void> { +Deno.test(function testPutVarbigLittleEndian(): void { const buff = new Uint8Array(8); putVarbig(buff, 0x8899aabbccddeeffn, { endian: "little" }); assertEquals( @@ -47,13 +47,13 @@ Deno.test(async function testPutVarbigLittleEndian(): Promise<void> { ); }); -Deno.test(async function testPutVarnum(): Promise<void> { +Deno.test(function testPutVarnum(): void { const buff = new Uint8Array(4); putVarnum(buff, 0xffeeddcc); assertEquals(buff, new Uint8Array([0xff, 0xee, 0xdd, 0xcc])); }); -Deno.test(async function testPutVarnumLittleEndian(): Promise<void> { +Deno.test(function testPutVarnumLittleEndian(): void { const buff = new Uint8Array(4); putVarnum(buff, 0xccddeeff, { endian: "little" }); assertEquals(buff, new Uint8Array([0xff, 0xee, 0xdd, 0xcc])); |