瀏覽代碼

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', () => {