Skip to content

Commit

Permalink
Remove duplicate test from assetFolderTransformer.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriLojda committed Sep 3, 2024
1 parent ccca59f commit 8cc63aa
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions tests/unit/syncModel/assetFolderTransformer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,6 @@ import { transformAssetFolderModel } from "../../../src/modules/sync/modelTransf
import { AssetFolderSyncModel } from "../../../src/modules/sync/types/syncModel.js";

describe("transformAssetFolderModel", () => {
it("correctly transforms asset folder model to sync model", () => {
const input = {
id: "01160b00-9d58-446d-bd13-5d9ceeb55d3c",
name: "folderName",
codename: "folderCodename",
external_id: "externalId",
folders: [
{
id: "folderId",
name: "nestedFolder",
codename: "nestedFolderCodename",
external_id: "nestedExternalId",
folders: [],
},
],
} as const satisfies AssetFolderContracts.IAssetFolderContract;

const expectedOutput: AssetFolderSyncModel = {
name: "folderName",
codename: "folderCodename",
folders: [
{
name: "nestedFolder",
codename: "nestedFolderCodename",
folders: [],
},
],
};

const result = transformAssetFolderModel(input);

expect(result).toStrictEqual(expectedOutput);
});

it("correctly transforms asset folder model to sync model with nested folders", () => {
const input = {
id: "01160b00-9d58-446d-bd13-5d9ceeb55d3c",
Expand Down

0 comments on commit 8cc63aa

Please sign in to comment.