File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ /* c8 ignore start */
1
2
const PLUGIN_NAME = "cp-visual-regression-diff" ;
2
3
export const LINK_PREFIX = `#${ PLUGIN_NAME } -` ;
3
4
export const OVERLAY_CLASS = `${ PLUGIN_NAME } -overlay` ;
@@ -18,3 +19,4 @@ export const TASK = {
18
19
} ;
19
20
20
21
export const METADATA_KEY = "FRSOURCE_CPVRD_V" ;
22
+ /* c8 ignore stop */
Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ import { wasScreenshotUsed } from "./screenshotPath.utils";
9
9
import { METADATA_KEY } from "./constants" ;
10
10
11
11
export const addPNGMetadata = ( png : Buffer ) =>
12
- addMetadata ( png , METADATA_KEY , version ) ;
13
- export const getPNGMetadata = ( png : Buffer ) => getMetadata ( png , METADATA_KEY ) ;
12
+ addMetadata ( png , METADATA_KEY , version /* c8 ignore next */ ) ;
13
+ export const getPNGMetadata = ( png : Buffer ) =>
14
+ getMetadata ( png , METADATA_KEY /* c8 ignore next */ ) ;
14
15
export const isImageCurrentVersion = ( png : Buffer ) =>
15
16
getPNGMetadata ( png ) === version ;
16
- export const isImageGeneratedByPlugin = ( png : Buffer ) => ! ! getPNGMetadata ( png ) ;
17
+ export const isImageGeneratedByPlugin = ( png : Buffer ) =>
18
+ ! ! getPNGMetadata ( png /* c8 ignore next */ ) ;
17
19
18
20
export const writePNG = ( name : string , png : PNG | Buffer ) =>
19
21
fs . writeFileSync (
You can’t perform that action at this time.
0 commit comments