Skip to content

Commit

Permalink
[Fix] multi: do not assume bound vs unbound
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 20, 2024
1 parent 4a0c3cd commit 28bca87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const doValidation = function doActualValidation(t, packageDir, name) {
st.equal(typeof module, 'function', 'module is a function (pass `--type=property` to skip this test)');
}

st.test('module is NOT bound (pass `--type=method` to skip this test)', { skip: type === 'method' }, (st2) => {
st.test('module is NOT bound (pass `--type=method` to skip this test)', { skip: type !== 'function' && type !== 'constructor' }, (st2) => {
st2.equal(module, getPolyfill(), 'module.exports === getPolyfill()');
st2.end();
});
Expand Down

0 comments on commit 28bca87

Please sign in to comment.