Steven Silvester 8 éve
szülő
commit
2bf1179569

+ 4 - 1
test/src/csvviewer/table.spec.ts

@@ -8,7 +8,7 @@ import {
 } from '@phosphor/virtualdom';
 
 import {
-  CSVModel, CSVTable, DISPLAY_LIMIT
+  CSVModel, CSVTable
 } from '@jupyterlab/csvviewer';
 
 import {
@@ -16,6 +16,9 @@ import {
 } from './data.csv';
 
 
+const DISPLAY_LIMIT: number = 1000;
+
+
 class TestTable extends CSVTable {
   render(): VirtualNode | VirtualNode[] {
     return super.render();

+ 4 - 1
test/src/csvviewer/toolbar.spec.ts

@@ -12,10 +12,13 @@ import {
 } from 'simulate-event';
 
 import {
-  CSVToolbar, DELIMITERS
+  CSVToolbar
 } from '@jupyterlab/csvviewer';
 
 
+const DELIMITERS = [',', ';', '\t'];
+
+
 describe('csvviewer/toolbar', () => {
 
   describe('CSVToolbar', () => {

+ 3 - 1
test/src/notebook/actions.spec.ts

@@ -24,7 +24,7 @@ import {
 } from '@jupyterlab/notebook';
 
 import {
-  Notebook, JUPYTER_CELL_MIME
+  Notebook
 } from '@jupyterlab/notebook';
 
 import {
@@ -39,6 +39,8 @@ import {
 
 const ERROR_INPUT = 'a = foo';
 
+const JUPYTER_CELL_MIME = 'application/vnd.jupyter.cells';
+
 
 describe('@jupyterlab/notebook', () => {
 

+ 3 - 4
test/src/notebook/default-toolbar.spec.ts

@@ -35,10 +35,6 @@ import {
  INotebookModel
 } from '@jupyterlab/notebook';
 
-import {
-  JUPYTER_CELL_MIME
-} from '@jupyterlab/notebook';
-
 import {
  NotebookPanel
 } from '@jupyterlab/notebook';
@@ -53,6 +49,9 @@ import {
 } from './utils';
 
 
+const JUPYTER_CELL_MIME = 'application/vnd.jupyter.cells';
+
+
 function startSession(context: DocumentRegistry.IContext<INotebookModel>): Promise<IClientSession> {
   context.save();
   return context.ready.then(() => {