MCPcopy Create free account
hub / github.com/electron-userland/electron-builder / assertIcon

Function assertIcon

test/src/mac/macIconTest.ts:9–18  ·  view source on GitHub ↗
(expect: ExpectStatic, platformPackager: CheckingMacPackager)

Source from the content-addressed store, hash-verified

7import { ExpectStatic } from "vitest"
8
9async function assertIcon(expect: ExpectStatic, platformPackager: CheckingMacPackager) {
10 const file = await platformPackager.getIconPath()
11 expect(file).toBeDefined()
12
13 const result = await platformPackager.resolveIcon([file!], [], "set")
14 result.forEach(it => {
15 it.file = path.basename(it.file)
16 })
17 expect(result).toMatchSnapshot()
18}
19
20const targets = Platform.MAC.createTarget(DIR_TARGET, Arch.x64)
21

Callers 1

macIconTest.tsFile · 0.85

Calls 1

getIconPathMethod · 0.45

Tested by

no test coverage detected