create-cellsweb-rpc-api 1.0.14 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -261,17 +261,15 @@ function tplTest(ns: string, fn: string, isMultipart: boolean): string {
|
|
|
261
261
|
|
|
262
262
|
import { describe, it, expect } from "vitest";
|
|
263
263
|
import { run } from "./run";
|
|
264
|
-
import { createUploadedFile } from "
|
|
264
|
+
import { createUploadedFile } from "@cellsweb/rpc-core";
|
|
265
265
|
|
|
266
266
|
describe("${ns}.${fn}", () => {
|
|
267
267
|
it("executes business logic with simulated upload", async () => {
|
|
268
268
|
const mockFile = createUploadedFile({
|
|
269
|
-
|
|
269
|
+
path: "/tmp/mock.png",
|
|
270
270
|
filename: "test.png",
|
|
271
|
-
encoding: "7bit",
|
|
272
271
|
mimeType: "image/png",
|
|
273
272
|
byteLength: 1024,
|
|
274
|
-
tempFilePath: "/tmp/mock.png",
|
|
275
273
|
});
|
|
276
274
|
|
|
277
275
|
const result = await run(
|