Skip to content
Snippets Groups Projects
Commit 11d44b30 authored by vkovtun's avatar vkovtun
Browse files

BIS-772: Writing JS tests.

parent 0445c315
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -152,29 +152,30 @@ define([ 'jquery', 'underscore', 'openbis', 'test/openbis-execute-operations', ' ...@@ -152,29 +152,30 @@ define([ 'jquery', 'underscore', 'openbis', 'test/openbis-execute-operations', '
testAction(c, fAction, fCheck); testAction(c, fAction, fCheck);
}); });
// QUnit.test("executeExport()", function(assert) { QUnit.test("executeExport()", function(assert) {
// var c = new common(assert, dtos); var c = new common(assert, dtos);
//
// var fAction = function(facade) { var fAction = function(facade) {
// var exportablePermId = new ExportablePermId( var exportablePermId = new ExportablePermId(
// ExportableKind.SAMPLE, new SamplePermId("200902091225616-1027")); ExportableKind.SAMPLE, new SamplePermId("200902091225616-1027"));
// var exportData = new dtos.ExportData(exportablePermId, var exportData = new dtos.ExportData(exportablePermId,
// new AllFields()); new AllFields());
//
// var exportOptions = new dtos.ExportOptions( var exportOptions = new dtos.ExportOptions(
// [ExportFormat.XLSX, ExportFormat.HTML, ExportFormat.PDF, ExportFormat.DATA], [ExportFormat.XLSX, ExportFormat.HTML, ExportFormat.PDF, ExportFormat.DATA],
// XlsTextFormat.RICH, true, false); XlsTextFormat.RICH, true, false);
//
// return facade.executeExport(exportData, exportOptions); return facade.executeExport(exportData, exportOptions);
// } }
//
// var fCheck = function(facade, result) { var fCheck = function(facade, result) {
// // Simple smoke test in this case. // Simple smoke test in this case.
// c.assertNotNull(result); c.assertNotNull(result);
// } return null;
// }
// testAction(c, fAction, fCheck);
// }); testAction(c, fAction, fCheck);
});
} }
return function() { return function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment