From 0445c3152504a948e0b2aa61fa30f9cc747b49d2 Mon Sep 17 00:00:00 2001 From: vkovtun <viktor.kovtun@id.ethz.ch> Date: Tue, 5 Dec 2023 15:13:07 +0100 Subject: [PATCH] BIS-772: Writing JS tests. --- .../html/test/test-import-export.js | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/test-api-openbis-javascript/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/test/test-import-export.js b/test-api-openbis-javascript/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/test/test-import-export.js index e97858ba8cf..cc9c7722426 100644 --- a/test-api-openbis-javascript/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/test/test-import-export.js +++ b/test-api-openbis-javascript/servers/common/core-plugins/tests/1/as/webapps/openbis-v3-api-test/html/test/test-import-export.js @@ -152,29 +152,29 @@ define([ 'jquery', 'underscore', 'openbis', 'test/openbis-execute-operations', ' testAction(c, fAction, fCheck); }); - QUnit.test("executeExport()", function(assert) { - var c = new common(assert, dtos); - - var fAction = function(facade) { - var exportablePermId = new ExportablePermId( - ExportableKind.SAMPLE, new SamplePermId("200902091225616-1027")); - var exportData = new dtos.ExportData(exportablePermId, - new AllFields()); - - var exportOptions = new dtos.ExportOptions( - [ExportFormat.XLSX, ExportFormat.HTML, ExportFormat.PDF, ExportFormat.DATA], - XlsTextFormat.RICH, true, false); - - return facade.executeExport(exportData, exportOptions); - } - - var fCheck = function(facade, result) { - // Simple smoke test in this case. - c.assertNotNull(result); - } - - testAction(c, fAction, fCheck); - }); + // QUnit.test("executeExport()", function(assert) { + // var c = new common(assert, dtos); + // + // var fAction = function(facade) { + // var exportablePermId = new ExportablePermId( + // ExportableKind.SAMPLE, new SamplePermId("200902091225616-1027")); + // var exportData = new dtos.ExportData(exportablePermId, + // new AllFields()); + // + // var exportOptions = new dtos.ExportOptions( + // [ExportFormat.XLSX, ExportFormat.HTML, ExportFormat.PDF, ExportFormat.DATA], + // XlsTextFormat.RICH, true, false); + // + // return facade.executeExport(exportData, exportOptions); + // } + // + // var fCheck = function(facade, result) { + // // Simple smoke test in this case. + // c.assertNotNull(result); + // } + // + // testAction(c, fAction, fCheck); + // }); } return function() { -- GitLab