mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
BREAKING(async): stop exporting ERROR_WHILE_MAPPING_MESSAGE (#5041)
This commit is contained in:
parent
b3be4c96cd
commit
3a930850c3
@ -2,7 +2,7 @@
|
||||
// This module is browser compatible.
|
||||
|
||||
/** Error message emitted from the thrown error while mapping. */
|
||||
export const ERROR_WHILE_MAPPING_MESSAGE = "Threw while mapping.";
|
||||
const ERROR_WHILE_MAPPING_MESSAGE = "Threw while mapping.";
|
||||
|
||||
/**
|
||||
* pooledMap transforms values from an (async) iterable into another async
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
import { delay } from "./delay.ts";
|
||||
import { ERROR_WHILE_MAPPING_MESSAGE, pooledMap } from "./pool.ts";
|
||||
import { pooledMap } from "./pool.ts";
|
||||
import {
|
||||
assert,
|
||||
assertEquals,
|
||||
@ -38,7 +38,7 @@ Deno.test("pooledMap() handles errors", async () => {
|
||||
}
|
||||
},
|
||||
AggregateError,
|
||||
ERROR_WHILE_MAPPING_MESSAGE,
|
||||
"Threw while mapping.",
|
||||
);
|
||||
assertEquals(error.errors.length, 2);
|
||||
assertStringIncludes(error.errors[0].stack, "Error: Bad number: 1");
|
||||
|
Loading…
Reference in New Issue
Block a user