Răsfoiți Sursa

fix callout test

Yuki Takei 1 an în urmă
părinte
comite
0a47fcd721
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      apps/app/src/features/callout/services/callout.spec.ts

+ 2 - 2
apps/app/src/features/callout/services/callout.spec.ts

@@ -35,7 +35,7 @@ This is an info callout.
 
     expect(calloutNode.data.hName).toBe('callout');
     expect(calloutNode.data.hProperties.type).toBe('info');
-    expect(calloutNode.data.hProperties.label).toBe('info');
+    expect(calloutNode.data.hProperties.label).not.toBeDefined();
 
     assert('children' in calloutNode.children[0]);
     assert('value' in calloutNode.children[0].children[0]);
@@ -107,7 +107,7 @@ This is an info callout.
 
     expect(calloutNode.data.hName).toBe('callout');
     expect(calloutNode.data.hProperties.type).toBe('info');
-    expect(calloutNode.data.hProperties.label).toBe('info');
+    expect(calloutNode.data.hProperties.label).not.toBeDefined();
 
     assert('children' in calloutNode.children[0]);
     assert('value' in calloutNode.children[0].children[0]);