From 73ad28f8a00ea2b822ff6dabb299094da2141c35 Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Fri, 7 Jun 2024 18:57:48 +0800 Subject: [PATCH] Assert `es2024` is the same as `builtin` (#253) --- test.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test.mjs b/test.mjs index d62c9b1..932dac9 100644 --- a/test.mjs +++ b/test.mjs @@ -82,6 +82,9 @@ test('es versions', t => { previousVersion = {esVersion, globals: Object.keys(globals[esVersion])}; } + + const latestVersion = esVersions.at(-1); + t.deepEqual(globals[latestVersion], globals.builtin, `'${latestVersion}' should be the same as 'builtin'.`); }); test('globals.json', async t => {