summaryrefslogtreecommitdiff
path: root/tests/unit/esnext_test.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-03-26 21:59:24 -0400
committerGitHub <noreply@github.com>2024-03-26 21:59:24 -0400
commit34a651ea2ed36063fbe58d5de0d0c41ae9fbd980 (patch)
tree7eb8f2c417b9db10c117336515a1799734f6355a /tests/unit/esnext_test.ts
parent2cd9c6a8e6bee8379f91efefc3521cd625e36a46 (diff)
feat: type declarations for new Set methods (#23090)
Closes #22851
Diffstat (limited to 'tests/unit/esnext_test.ts')
-rw-r--r--tests/unit/esnext_test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/esnext_test.ts b/tests/unit/esnext_test.ts
index 6b2334f42..cb40cc241 100644
--- a/tests/unit/esnext_test.ts
+++ b/tests/unit/esnext_test.ts
@@ -41,3 +41,10 @@ Deno.test(function intlListFormat() {
{ type: "element", value: "golang" },
]);
});
+
+Deno.test(function setUnion() {
+ const a = new Set([1, 2, 3]);
+ const b = new Set([3, 4, 5]);
+ const union = a.union(b);
+ assertEquals(union, new Set([1, 2, 3, 4, 5]));
+});