diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-28 12:33:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:33:09 +0200 |
commit | 8feb30e3258ed9690eb850e3ca22842b260a0403 (patch) | |
tree | 6805bfe3df675c2c7f6a379093061c6b73d8365a /std/io/bufio_test.ts | |
parent | b508e845671de9351c3f51755647371d76128d29 (diff) |
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named
function.
Diffstat (limited to 'std/io/bufio_test.ts')
-rw-r--r-- | std/io/bufio_test.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/std/io/bufio_test.ts b/std/io/bufio_test.ts index ef1fcc11e..7e737e60f 100644 --- a/std/io/bufio_test.ts +++ b/std/io/bufio_test.ts @@ -40,7 +40,7 @@ async function readBytes(buf: BufReader): Promise<string> { return decoder.decode(b.subarray(0, nb)); } -Deno.test(async function bufioReaderSimple(): Promise<void> { +Deno.test("bufioReaderSimple", async function (): Promise<void> { const data = "hello world"; const b = new BufReader(stringsReader(data)); const s = await readBytes(b); @@ -108,7 +108,7 @@ const bufsizes: number[] = [ 4096, ]; -Deno.test(async function bufioBufReader(): Promise<void> { +Deno.test("bufioBufReader", async function (): Promise<void> { const texts = new Array<string>(31); let str = ""; let all = ""; @@ -136,7 +136,7 @@ Deno.test(async function bufioBufReader(): Promise<void> { } }); -Deno.test(async function bufioBufferFull(): Promise<void> { +Deno.test("bufioBufferFull", async function (): Promise<void> { const longString = "And now, hello, world! It is the time for all good men to come to the" + " aid of their party"; @@ -157,7 +157,7 @@ Deno.test(async function bufioBufferFull(): Promise<void> { assertEquals(actual, "world!"); }); -Deno.test(async function bufioReadString(): Promise<void> { +Deno.test("bufioReadString", async function (): Promise<void> { const string = "And now, hello world!"; const buf = new BufReader(stringsReader(string), MIN_READ_BUFFER_SIZE); @@ -239,12 +239,12 @@ async function testReadLine(input: Uint8Array): Promise<void> { } } -Deno.test(async function bufioReadLine(): Promise<void> { +Deno.test("bufioReadLine", async function (): Promise<void> { await testReadLine(testInput); await testReadLine(testInputrn); }); -Deno.test(async function bufioPeek(): Promise<void> { +Deno.test("bufioPeek", async function (): Promise<void> { const decoder = new TextDecoder(); const p = new Uint8Array(10); // string is 16 (minReadBufferSize) long. @@ -320,7 +320,7 @@ Deno.test(async function bufioPeek(): Promise<void> { */ }); -Deno.test(async function bufioWriter(): Promise<void> { +Deno.test("bufioWriter", async function (): Promise<void> { const data = new Uint8Array(8192); for (let i = 0; i < data.byteLength; i++) { @@ -354,7 +354,7 @@ Deno.test(async function bufioWriter(): Promise<void> { } }); -Deno.test(function bufioWriterSync(): void { +Deno.test("bufioWriterSync", function (): void { const data = new Uint8Array(8192); for (let i = 0; i < data.byteLength; i++) { @@ -388,7 +388,7 @@ Deno.test(function bufioWriterSync(): void { } }); -Deno.test(async function bufReaderReadFull(): Promise<void> { +Deno.test("bufReaderReadFull", async function (): Promise<void> { const enc = new TextEncoder(); const dec = new TextDecoder(); const text = "Hello World"; @@ -414,7 +414,7 @@ Deno.test(async function bufReaderReadFull(): Promise<void> { } }); -Deno.test(async function readStringDelimAndLines(): Promise<void> { +Deno.test("readStringDelimAndLines", async function (): Promise<void> { const enc = new TextEncoder(); const data = new Buffer( enc.encode("Hello World\tHello World 2\tHello World 3") |