Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rumpl/bingo
Test function calls.
https://github.com/rumpl/bingo
Last synced: 15 days ago
JSON representation
Test function calls.
- Host: GitHub
- URL: https://github.com/rumpl/bingo
- Owner: rumpl
- License: mit
- Created: 2012-06-14T12:13:04.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-06-14T13:45:17.000Z (over 12 years ago)
- Last Synced: 2024-12-24T21:04:30.342Z (about 2 months ago)
- Language: JavaScript
- Size: 116 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# bingo
Test function calls.
## Getting Started
Install the module with: `npm install bingo`## Examples
```javascript
// Require the module.
var bingo = require('bingo');// Bingo that object.
var someObject = bingo(someObject);// Get info about the function.
console.log(someObject.someFunction.didExecute() === false); // true
console.log(someObject.someFunction.timesExecuted()); // 0// Call some function.
someObject.someFunction();// Get info about the execution of the function.
console.log(someObject.someFunction.didExecute() === true); // true
console.log(someObject.someFunction.timesExecuted()); // 1
```## Contributing
Yes yes, please, contribute. What else do you want to know about an execution of a function ?Lint and test your code using [grunt](https://github.com/cowboy/grunt).
## Release History
- 0.2.0 (2012-06-14) Make bingo work in the browser
- 0.1.0 (2012-06-14) First version## License
Copyright (c) 2012 Djorje Lukic
Licensed under the [MIT license](http://rumpl.mit-license.org/).