Skip to content

Commit b7c685f

Browse files
committed
add failing test for #44
1 parent fa09fac commit b7c685f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/basic.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,7 @@ assert.equal(string.to.hwb([280, 40, 60], 0), 'hwb(280, 40%, 60%, 0)');
180180

181181
assert.equal(string.to.keyword([255, 255, 0]), 'yellow');
182182
assert.equal(string.to.keyword([100, 255, 0]), undefined);
183+
184+
// Make sure .get() doesn't return object prototype values (regression test, #44)
185+
Object.keys(Object.getOwnPropertyDescriptors(Object.prototype))
186+
.map(property => assert.deepStrictEqual([property, string.get(property)], [property, null]));

0 commit comments

Comments
 (0)