Explorar o código

add expect lines

Yuki Takei %!s(int64=3) %!d(string=hai) anos
pai
achega
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);
     });