From 04ec735db2d72fbf01fce9ebb00ac1de0c23f26f Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 4 Sep 2024 22:02:02 -0700 Subject: [PATCH] [Fix] ensure bound shim is actually bound --- api.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api.js b/api.js index ba16fce..802d63b 100755 --- a/api.js +++ b/api.js @@ -118,6 +118,10 @@ var doValidation = function doActualValidation(t, packageDir, name) { st2.equal(module, getPolyfill(), 'module.exports === getPolyfill()'); st2.end(); }); + st.test('module is bound (do not pass `--bound` to skip this test)', { skip: !isBound }, function (st2) { + st2.notEqual(module, getPolyfill(), 'module.exports !== getPolyfill()'); + st2.end(); + }); st.end(); });