Skip to content

Commit

Permalink
fix(test): add missing variable
Browse files Browse the repository at this point in the history
release-npm
  • Loading branch information
tobua committed Dec 17, 2022
1 parent 65bafee commit b1fcd64
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions adaptive-icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const writeResFile = (nativePath: string, path: string, contents: string) => {

export const generateAndroidAdaptiveIcons = async (
nativePath: string,
projectPath: string,
options: Options,
log: Log
) => {
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default async ({

await Promise.all(androidPromises)

await generateAndroidAdaptiveIcons(nativePath, options, log)
await generateAndroidAdaptiveIcons(nativePath, projectPath, options, log)

const iosPromises = sizes.ios.map((icon) => {
const destinationFile = join(nativePath, icon.path)
Expand Down
5 changes: 5 additions & 0 deletions test/logo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ global.beforeEach = beforeEach
// @ts-ignore
global.afterEach = afterEach

// TODO should be done for spy in jest-fixture.
afterEach(() => {
vi.restoreAllMocks()
})

environment('logo')

test('Creates logos in various sizes.', async () => {
Expand Down

0 comments on commit b1fcd64

Please sign in to comment.