فهرست منبع

Fix some debugger tests

Afshin T. Darian 4 سال پیش
والد
کامیت
4c7c9e0ef8
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      packages/debugger/test/debugger.spec.ts

+ 2 - 2
packages/debugger/test/debugger.spec.ts

@@ -129,7 +129,7 @@ describe('Debugger', () => {
 
     await act(async () => {
       await service.updateBreakpoints(code, breakpoints);
-      connection.kernel.requestExecute({ code });
+      connection!.kernel!.requestExecute({ code });
       await currentFrameChanged;
     });
   });
@@ -245,7 +245,7 @@ describe('Debugger', () => {
       const body = sidebar.sources.widgets[0] as SourcesHeader;
       const children = toArray(body.children());
       const sourcePath = children[2].node.querySelector('span');
-      expect(sourcePath.innerHTML).toEqual(path);
+      expect(sourcePath!.innerHTML).toEqual(path);
     });
 
     it('should display the source code in the body', () => {