1.0.2 • Published 1 year ago

mocha-diff v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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));
1.0.2

1 year ago

1.0.1

1 year ago

0.0.0

1 year ago

1.0.0

1 year ago