Skip to content

Commit d778560

Browse files
committedApr 2, 2025·
chore(image-processing-api): remove unused variable
1 parent 4faccae commit d778560

File tree

1 file changed

+2
-3
lines changed
  • extensions/image-processing-api/functions/__tests__/integration

1 file changed

+2
-3
lines changed
 

‎extensions/image-processing-api/functions/__tests__/integration/process.test.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// __tests__/integration/process.test.ts
22
import { describe, it, expect, vi, beforeEach } from 'vitest';
33
import express, { Response } from 'express';
4-
import { Operation } from '../../src/types';
54

65
// Mock utils BEFORE importing them
76
vi.mock('../../src/utils', () => {
@@ -78,7 +77,6 @@ vi.mock('sharp', () => {
7877

7978
// Import AFTER defining mocks
8079
import { createMockRequest } from '../mocks/request.mock';
81-
import * as utils from '../../src/utils';
8280
import {
8381
asValidatedOperations,
8482
jsonAsValidatedOperations,
@@ -87,7 +85,8 @@ import {
8785
// Create mock processImageRequest function
8886
const processImageRequest = vi
8987
.fn()
90-
.mockImplementation(async (validatedOperations, res, req) => {
88+
// @ts-ignore
89+
.mockImplementation(async (validatedOperations, res) => {
9190
// Mock implementation that doesn't actually make HTTP requests
9291
res.writeHead(200, { 'Content-Type': 'image/jpeg' });
9392
res.end(Buffer.from('processed image data'));

0 commit comments

Comments
 (0)
Please sign in to comment.