Yuki Takei 1 год назад
Родитель
Сommit
9d35745d07
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      apps/app/src/services/renderer/recommended-whitelist.spec.ts

+ 9 - 0
apps/app/src/services/renderer/recommended-whitelist.spec.ts

@@ -14,6 +14,9 @@ describe('recommended-whitelist', () => {
 
 
   test('.attributes should return data attributes', () => {
   test('.attributes should return data attributes', () => {
     expect(attributes).not.toBeNull();
     expect(attributes).not.toBeNull();
+
+    assert(attributes != null);
+
     expect(Object.keys(attributes)).includes('*');
     expect(Object.keys(attributes)).includes('*');
     expect(attributes['*']).includes('alt');
     expect(attributes['*']).includes('alt');
     expect(attributes['*']).includes('align');
     expect(attributes['*']).includes('align');
@@ -25,12 +28,18 @@ describe('recommended-whitelist', () => {
 
 
   test('.attributes should return iframe attributes', () => {
   test('.attributes should return iframe attributes', () => {
     expect(attributes).not.toBeNull();
     expect(attributes).not.toBeNull();
+
+    assert(attributes != null);
+
     expect(Object.keys(attributes)).includes('iframe');
     expect(Object.keys(attributes)).includes('iframe');
     expect(attributes.iframe).includes('src');
     expect(attributes.iframe).includes('src');
   });
   });
 
 
   test('.attributes should return video attributes', () => {
   test('.attributes should return video attributes', () => {
     expect(attributes).not.toBeNull();
     expect(attributes).not.toBeNull();
+
+    assert(attributes != null);
+
     expect(Object.keys(attributes)).includes('video');
     expect(Object.keys(attributes)).includes('video');
     expect(attributes.iframe).includes('src');
     expect(attributes.iframe).includes('src');
   });
   });