master
/ .localenv / lib / python3.5 / site-packages / jupyterlab / tests / mock_packages / extension / index.js

index.js @master

08862c9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { ILauncher } from '@jupyterlab/launcher';

module.exports = [
  {
    id: 'mockextension',
    requires: [ILauncher],
    autoStart: true,
    activate: function(application, launcher) {
      // eslint-disable-next-line no-console
      console.log('mock extension activated', launcher);
      window.commands = application.commands;
    }
  }
];