mocha-diff

1.0.2 • Public • Published

mocha-diff

This lib is an extraction of Mocha's diff implementation

Why did I want to extract Mocha's implementation? Because of this line:

Mocha’s own diff output does not conform to any known standards, and is designed to be human-readable.

Installation

npm install mocha-diff

Usage

import { generateDiff } from 'mocha-diff';

console.log(generateDiff(actual, expected));

Readme

Keywords

none

Package Sidebar

Install

npm i mocha-diff

Weekly Downloads

50

Version

1.0.2

License

MIT

Unpacked Size

8.48 kB

Total Files

4

Last publish

Collaborators

  • real_ate