# pingpongtest

> a super-lightweight testing library for unit testing pure javascript models.

Latest version **1.0.2** (published 2017-10-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install pingpongtest
pnpm add pingpongtest
yarn add pingpongtest
bun add pingpongtest
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-10-14 |
| First published | 2017-10-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | James Stubbs, Rory Hodgson, Zoe Hopkins, Mengchen Wang |
| Maintainers | comatoastuk |
| Keywords | Javascript, Test, Testing, Mocks, PingPong |

## Links

- npm: https://www.npmjs.com/package/pingpongtest
- Repository: https://github.com/ComaToastUK/PingPongTest
- Homepage: https://github.com/ComaToastUK/PingPongTest#readme
- Issues: https://github.com/ComaToastUK/PingPongTest/issues
- npm.io page: https://npm.io/package/pingpongtest

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-10-14
- 1.0.1 — 2017-10-13
- 1.0.0 — 2017-10-13

## README

# 🏓 PING PONG TEST 🏓

This is a super-lightweight testing library for unit testing pure javascript models.

### How to use

- Clone the repo into your project folder
- Add your sources to the PingPongSpecRunner.html file
- Write your tests using the syntax below
- Add your test files to the PingPongSpecRunner.html file
- $ open PingPongSpecRunner.html
- Check the console in your browser for results
- Test results will be visible in the console and failed tests will throw error with details

```
(function(exports) {
  function exampleTest() {
    var exampleTest = new PingPongSpec(); // Create a new instance of the test class
    var yourObject = new YourObject(); // This is the object you want to test
    exampleTest.it("Expects something"); // Write what you want to test as an arg
    exampleTest.expect(yourObject.SomeMethod()); // Input the method you want to test as an arg
    exampleTest.expectToEqual(Some_expected_output); // Input the expected output as an arg
  }

exampleTest();
})(this);
```
### Collaborators

- James Stubbs 
- Rory Hodgson 
- Mengchen Wang
- Zoe Hopkins

---
_Source: https://npm.io/package/pingpongtest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
