(obj, key, attribute)
| 6 | |
| 7 | function test (binding) { |
| 8 | function assertPropertyIs (obj, key, attribute) { |
| 9 | const propDesc = Object.getOwnPropertyDescriptor(obj, key); |
| 10 | assert.ok(propDesc); |
| 11 | assert.ok(propDesc[attribute]); |
| 12 | } |
| 13 | |
| 14 | function assertPropertyIsNot (obj, key, attribute) { |
| 15 | const propDesc = Object.getOwnPropertyDescriptor(obj, key); |
no outgoing calls
no test coverage detected