UNPKG

fake-promise

Version:

Gives full control over when ES6 promises are resolved by providing an implementation of Promise with behavior controlled by .resolve(result) and .reject(error) methods. Intended for use in unit tests.

53 lines (52 loc) 1.65 kB
{ "name": "fake-promise", "version": "2.5.44", "description": "Gives full control over when ES6 promises are resolved by providing an implementation of Promise with behavior controlled by .resolve(result) and .reject(error) methods. Intended for use in unit tests.", "main": "index.js", "scripts": { "clean": "rm -rf lib #", "compile-ts": "tsc", "compile-coffee": "coffee -c -m -o lib src", "compile": "npm run compile-coffee && npm run compile-ts", "test": "mocha --use_strict lib/mocha.config.js $(find lib -name \"*.spec.js\")", "copy-assets": "cp package*.json lib/ && cp README.md lib/ && cp LICENSE lib/", "build": "npm run compile && npm test && npm run copy-assets", "clean-build": "npm run clean && npm run build", "deploy": "npm install && npm run clean-build && cd lib && npm publish" }, "repository": { "type": "git", "url": "git+https://github.com/mchalapuk/fake-promise.git" }, "keywords": [ "promise", "fake", "unit-tests", "testing", "util", "mock", "resolve", "trace" ], "author": { "name": "Maciej Chałapuk", "email": "maciej@chalapuk.pl", "url": "https://github.com/mchalapuk" }, "license": "MIT", "bugs": { "url": "https://github.com/mchalapuk/fake-promise/issues" }, "homepage": "https://github.com/mchalapuk/fake-promise#readme", "devDependencies": { "coffeescript": "^2.5.1", "colors": "^1.4.0", "mocha": "^8.2.1", "should": "^13.2.3", "should-sinon": "0.0.6", "sinon": "^9.2.2", "source-map-support": "^0.5.19", "typescript": "^4.1.3" }, "dependencies": {} }