Skip to content

Commit

Permalink
[api] Port Editor js tests using the public API
Browse files Browse the repository at this point in the history
  • Loading branch information
romainr committed May 27, 2021
1 parent 4b8d08d commit 3e5f226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions desktop/core/src/desktop/js/api/urls.js
Expand Up @@ -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';
Expand Down
Expand Up @@ -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);
}
);

Expand Down

0 comments on commit 3e5f226

Please sign in to comment.