Files: d456a6cc8589489e558e6164750474ed2cfc961e / test / test-79-npm / colors / colors.js
264 bytesRaw
1 | ; |
2 | |
3 | var colors = require('colors'); |
4 | |
5 | if (typeof colors.green === 'function') { |
6 | var gopd = Object.getOwnPropertyDescriptor; |
7 | var grass = gopd(String.prototype, 'green'); |
8 | if (grass && (typeof grass.get === 'function')) { |
9 | console.log('ok'); |
10 | } |
11 | } |
12 |
Built with git-ssb-web