# mulika

> Lightiest & tiniest javascript test tool

Latest version **1.1.13** (published 2020-06-29) · MIT license · 0 weekly downloads

## Install

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

## 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.1.13 |
| Published | 2020-06-29 |
| First published | 2020-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 28.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Maye Edwin |
| Maintainers | mayeedwin |
| Keywords | mulika, maye, mayeedwin, tests, jest |

## Links

- npm: https://www.npmjs.com/package/mulika
- Repository: https://github.com/mayeedwin/mulika
- Homepage: https://github.com/mayeedwin/mulika#readme
- Issues: https://github.com/mayeedwin/mulika/issues
- npm.io page: https://npm.io/package/mulika

## Dependencies (1)

- [colors](https://npm.io/package/colors.md) ^1.4.0

## 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.1.13 (latest) — 2020-06-29
- 1.1.12 — 2020-06-27
- 1.1.11 — 2020-06-27
- 1.1.10 — 2020-06-26
- 1.1.0 — 2020-06-26
- 1.0.91 — 2020-06-26
- 1.0.9 — 2020-06-26
- 1.0.8 — 2020-06-26
- 1.0.7 — 2020-06-26
- 1.0.6 — 2020-06-26
- 1.0.5 — 2020-06-25
- 1.0.4 — 2020-06-25
- 1.0.3 — 2020-06-25
- 1.0.2 — 2020-06-25
- 1.0.1 — 2020-06-25
- … 1 more at https://npm.io/package/mulika/versions

## README

## Mulika, Tiniest JavaScript Test Tool

### Install mulika

```bash
npm i mulika 
```

### Mulika CDN

Minimal in-browser UI add-on to your pages! Google Chrome, MS Edge recommended anf Firefox.

![Mulika Terminal](https://raw.githubusercontent.com/mayeedwin/mulika/master/assets/mulikaterminal.png)

#### Add the scripts above any files to be tested in your html page.

```js
<script src="https://pwafire.org/code/mulika/@latest.js"></script>
```

#### Add styles to your html page

```html
<link rel="stylesheet" href="https://pwafire.org/code/mulika/@latest.css" />
```

#### Add the html component at the bottom of your html page

```html
<section id="mulika" class="mulika">
    <div class="top">
        <div class="btns">
            <span class="circle red"></span>
            <span class="circle yellow"></span>
            <span class="circle green"></span>
            <span class="mulika-title">Mulika Tests</span>
        </div>
    </div>
    <pre class="tests" id="tests"></pre>
</section>
```

#### Configuring for in-browser mulika

In your test js file, you need to enable **debug/dev mode** and **start mulika** first as shown below,
all at the top of the test file.

```js

// Mulika...
mulika.debug = true;
mulika.start();

//...
```

### Specification...

All variables must be provided, all are required!

```js
// Type check...
mulika.typeCheck({ type: type, value: value });

// Other tests...
mulika.expect(message, func, expected_value);
```

### Example...

Launch Playground [Here](https://npm.runkit.com/mulika)

```js
// Require mulika...
const mulika = require("mulika");

const registered = true;
// 1. Type check...
mulika.typeCheck({ type: "boolean", value: registered });

// 2. All tests...
mulika.expect("Sum to be 1", add(1, 9), 1);
// Function to test...
function add(a, b) {
    return a + b;
}
```

Enjoy!

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