Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/techjacker/tap-test-helpers
test helpers for isaac's node-tap test framework
https://github.com/techjacker/tap-test-helpers
Last synced: 15 days ago
JSON representation
test helpers for isaac's node-tap test framework
- Host: GitHub
- URL: https://github.com/techjacker/tap-test-helpers
- Owner: techjacker
- License: mit
- Created: 2013-06-18T18:15:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-20T11:18:35.000Z (over 11 years ago)
- Last Synced: 2024-10-25T12:31:36.180Z (19 days ago)
- Language: JavaScript
- Homepage:
- Size: 164 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tap-test-helpers
[![Build Status](https://secure.travis-ci.org/techjacker/tap-test-helpers.png)](http://travis-ci.org/techjacker/tap-test-helpers)
### Install
```Shell
npm install tap-test-helpers
```### Docs
[Yuidocs documentation here](docs/index.html)
- link only works when checkout repo and preview README locally## API Summary
```TestHelper = require.('tap-test-helpers');```### Api Helper Class
#### ```.Api.methodsExposed(['method', 'names'], module)```
```JavaScript
// 1 test shd fail; Object.twoPot is not exposed
TestHelper.Api.methodsExposed(['onePot', 'twoPot', 'threePot'], {
'onePot': function(argument) {},
'threePot': function(argument) {}
});
```### Oop Helper Class
#### ```.Oop.inheritsCheckProto(ChildClass, ParentClass)```
```JavaScript
function A() {};
A.prototype.foo = function(x, y) {
return x + y;
};function B() {};
B.prototype.foo = function(x, y) {
return 2 + this.super_.foo(x, y);
};// all tests PASS
require.('extasy').extendCtor(B, A);
TestHelper.Oop.inheritsCheckProto(B, A);
```