From 34a651ea2ed36063fbe58d5de0d0c41ae9fbd980 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 26 Mar 2024 21:59:24 -0400 Subject: feat: type declarations for new Set methods (#23090) Closes #22851 --- tests/unit/esnext_test.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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])); +}); -- cgit v1.2.3