Parcourir la source

Remove obsolete test

Jason Grout il y a 5 ans
Parent
commit
1fa189e8b7
2 fichiers modifiés avec 2 ajouts et 12 suppressions
  1. 2 3
      packages/apputils/src/toolbar.tsx
  2. 0 9
      tests/test-apputils/src/toolbar.spec.ts

+ 2 - 3
packages/apputils/src/toolbar.tsx

@@ -408,9 +408,8 @@ export namespace Toolbar {
    * Create a kernel name indicator item.
    *
    * #### Notes
-   * It will display the `'display_name`' of the current kernel,
-   * or `'No Kernel!'` if there is no kernel.
-   * It can handle a change in context or kernel.
+   * It will display the `'display_name`' of the session context. It can
+   * handle a change in context or kernel.
    */
   export function createKernelNameItem(
     sessionContext: ISessionContext

+ 0 - 9
tests/test-apputils/src/toolbar.spec.ts

@@ -313,15 +313,6 @@ describe('@jupyterlab/apputils', () => {
             (item.node.firstChild.lastChild as HTMLElement).textContent
           ).to.equal(sessionContext.kernelDisplayName);
         });
-
-        it("should display `'No Kernel!'` if there is no kernel", async () => {
-          const item = Toolbar.createKernelNameItem(sessionContext);
-          Widget.attach(item, document.body);
-          await framePromise();
-          expect(
-            (item.node.firstChild.lastChild as HTMLElement).textContent
-          ).to.equal('No Kernel!');
-        });
       });
 
       describe('.createKernelStatusItem()', () => {