소스 검색

tslint: ignore no-invalid-this for `this.timeout` in mocha clauses

telamonian 5 년 전
부모
커밋
ec3316677b
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      tests/test-notebook/src/actions.spec.ts
  2. 1 0
      tests/test-notebook/src/default-toolbar.spec.ts

+ 1 - 0
tests/test-notebook/src/actions.spec.ts

@@ -37,6 +37,7 @@ describe('@jupyterlab/notebook', () => {
     let ipySession: ClientSession;
 
     before(async function() {
+      // tslint:disable-next-line:no-invalid-this
       this.timeout(60000);
       [session, ipySession] = await Promise.all([
         createClientSession(),

+ 1 - 0
tests/test-notebook/src/default-toolbar.spec.ts

@@ -230,6 +230,7 @@ describe('@jupyterlab/notebook', () => {
       let panel: NotebookPanel;
 
       beforeEach(async function() {
+        // tslint:disable-next-line:no-invalid-this
         this.timeout(60000);
         context = await initNotebookContext({ startKernel: true });
         panel = NBTestUtils.createNotebookPanel(context);