Browse Source

fix type error

Yuki Takei 2 months ago
parent
commit
487c52d2e7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      apps/app/src/services/renderer/recommended-whitelist.spec.ts

+ 2 - 1
apps/app/src/services/renderer/recommended-whitelist.spec.ts

@@ -159,7 +159,6 @@ describe('recommended-whitelist', () => {
 
     test('.attributes should have empty arrays for tags without specific attributes', () => {
       expect(attributes).not.toBeNull();
-      assert(attributes != null);
 
       // Tags that should have empty attribute arrays
       const tagsWithEmptyAttributes = [
@@ -173,6 +172,8 @@ describe('recommended-whitelist', () => {
       ];
 
       tagsWithEmptyAttributes.forEach((tag) => {
+        assert(attributes != null);
+
         expect(Object.keys(attributes)).toContain(tag);
         expect(attributes[tag]).toEqual([]);
       });