浏览代码

[api] Port Editor js tests using the public API

Romain Rigaux 4 年之前
父节点
当前提交
3e5f22683e

+ 2 - 2
desktop/core/src/desktop/js/api/urls.js

@@ -44,8 +44,8 @@ export const TOPO_URL = '/desktop/topo/';
 export const SEARCH_API = '/desktop/api/search/entities';
 export const INTERACTIVE_SEARCH_API = '/desktop/api/search/entities_interactive';
 
-export const CREATE_SESSION_API = '/notebook/api/create_session';
-export const CLOSE_SESSION_API = '/notebook/api/close_session';
+export const CREATE_SESSION_API = '/api/editor/create_session'; // Note: dup by api.ts
+export const CLOSE_SESSION_API = '/api/editor/close_session'; // Note: dup by api.ts
 export const FETCH_RESULT_SIZE_API = '/notebook/api/fetch_result_size';
 export const FETCH_RESULT_DATA_API = '/notebook/api/fetch_result_data';
 export const GET_LOGS_API = '/notebook/api/get_logs';

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/execution/sqlExecutable.test.ts

@@ -129,7 +129,7 @@ describe('sqlExecutable.js', () => {
           return logsPromise;
         }
         fail('fail for URL: ' + url);
-        throw new Error('fail for URL: ' + url);
+        throw new Error('Did not find URL: ' + url);
       }
     );