Buckets:
ktongue/docker_container / .cache /opencode /node_modules /avvio /test /lib /is-promise-like.test.js
| const { test } = require('tap') | |
| const { isPromiseLike } = require('../../lib/is-promise-like') | |
| test('isPromiseLike', (t) => { | |
| t.plan(9) | |
| t.equal(isPromiseLike(1), false) | |
| t.equal(isPromiseLike('function'), false) | |
| t.equal(isPromiseLike({}), false) | |
| t.equal(isPromiseLike([]), false) | |
| t.equal(isPromiseLike(null), false) | |
| t.equal(isPromiseLike(function () {}), false) | |
| t.equal(isPromiseLike(new Promise((resolve) => resolve)), true) | |
| t.equal(isPromiseLike(Promise.resolve()), true) | |
| t.equal(isPromiseLike({ then: () => {} }), true) | |
| }) | |
Xet Storage Details
- Size:
- 563 Bytes
- Xet hash:
- 43c42a5c804d4fd8c5fe7f3ed7ca4cb09b0235dc72fe46fa955f53ce6d380f30
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.