corde
Version:
A simple library for Discord bot tests
31 lines (30 loc) • 603 B
TypeScript
/**
* Binder of `jest-diff`.
*
* @param obj1 First object to check.
* @param obj2 Second object to check with `obj1`.
* @see https://github.com/facebook/jest/tree/master/packages/jest-diff
*
* @example
*
* const a = ['delete', 'common', 'changed from'];
* const b = ['common', 'changed to', 'insert'];
*
* const result = diff(a, b);
*
* // result outputs:
*
* - expected
* + received
*
* Array [
* - "delete",
* "common",
* - "changed from",
* + "changed to",
* + "insert",
* ]
*
* @internal
*/
export declare function diff<T>(obj1: T, obj2: T): string | null;