Przeglądaj źródła

add expect lines

Yuki Takei 2 lat temu
rodzic
commit
031c97fa7c

+ 2 - 0
apps/app/src/services/renderer/rehype-plugins/relative-links.spec.ts

@@ -56,6 +56,8 @@ describe('relativeLinks', () => {
 
       // then
       const anchorElement = select('a', hastTree);
+      expect(anchorElement).not.toBeNull();
+      expect(anchorElement?.properties).not.toBeNull();
       expect(anchorElement?.properties?.href).toBe(expectedHref);
     });