From f6bfd7d30460fe638e2dd44f4babbeba67094c83 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Thu, 16 Mar 2023 17:47:36 +0300 Subject: [PATCH] Fixing test to ensure icon has data:image Signed-off-by: Alex Andreev --- packages/core/src/main/cluster/update-entity-spec.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/main/cluster/update-entity-spec.test.ts b/packages/core/src/main/cluster/update-entity-spec.test.ts index 1cd9ed4f96..95a481d84a 100644 --- a/packages/core/src/main/cluster/update-entity-spec.test.ts +++ b/packages/core/src/main/cluster/update-entity-spec.test.ts @@ -52,9 +52,9 @@ describe("update-entity-spec", () => { }); it("given cluster has icon, updates entity spec with icon", () => { - cluster.preferences.icon = "some-icon"; + cluster.preferences.icon = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/"; updateEntitySpec(entity, cluster); - expect(entity.spec.icon?.src).toEqual("some-icon"); + expect(entity.spec.icon?.src).toEqual("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/"); }); it("given cluster icon is null, deletes icon from both", () => {