Interface: PNGDiffer
mugshot.PNGDiffer
Compare two screenshots and produce a diff image if necessary.
#
Implemented by#
Properties#
compare• compare: (expected
: Buffer, actual
: Buffer) => Promise<DiffResult>
param
PNG encoded buffer.
param
PNG encoded buffer.
#
Type declaration:▸ (expected
: Buffer, actual
: Buffer): Promise<DiffResult>
#
Parameters:Name | Type |
---|---|
expected | Buffer |
actual | Buffer |
Returns: Promise<DiffResult>
Defined in: packages/mugshot/src/interfaces/png-differ.ts:32
Defined in: packages/mugshot/src/interfaces/png-differ.ts:32