浏览代码

Add an incompatible package for tests

Steven Silvester 8 年之前
父节点
当前提交
d5b56e428d
共有 2 个文件被更改,包括 23 次插入0 次删除
  1. 13 0
      jupyterlab/tests/mockextension-incompat/index.js
  2. 10 0
      jupyterlab/tests/mockextension-incompat/package.json

+ 13 - 0
jupyterlab/tests/mockextension-incompat/index.js

@@ -0,0 +1,13 @@
+// Copyright (c) Jupyter Development Team.
+// Distributed under the terms of the Modified BSD License.
+
+module.exports = [
+{
+  id: 'mockextension',
+  autoStart: true,
+  activate: function(application) {
+    console.log('mock extension activated')
+    window.commands = application.commands;
+  }
+}
+]

+ 10 - 0
jupyterlab/tests/mockextension-incompat/package.json

@@ -0,0 +1,10 @@
+{
+  "name": "@jupyterlab/python-tests",
+  "version": "0.1.0",
+  "private": true,
+  "jupyterlab": { "extension": true },
+  "dependencies": {
+    "@jupyterlab/application": "^0.5.0"
+  },
+  "devDependencies": {}
+}