ソースを参照

fix type error

Yuki Takei 2 ヶ月 前
コミット
487c52d2e7

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