alfresco-js-api
Version:
JavaScript client library for the Alfresco REST API
116 lines (108 loc) • 3.64 kB
JavaScript
/**
* Alfresco Governance Services REST API
* **GS Core API** Provides access to the core features of Alfresco Governance Services.
*
* OpenAPI spec version: 1
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.2.3
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', '../../src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.AlfrescoGovernanceServicesRestApi);
}
}(this, function(expect, AlfrescoGovernanceServicesRestApi) {
'use strict';
var instance;
beforeEach(function() {
instance = new AlfrescoGovernanceServicesRestApi.RecordsApi();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('RecordsApi', function() {
describe('completeRecord', function() {
it('should call completeRecord successfully', function(done) {
//uncomment below and update the code to test completeRecord
//instance.completeRecord(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('deleteRecord', function() {
it('should call deleteRecord successfully', function(done) {
//uncomment below and update the code to test deleteRecord
//instance.deleteRecord(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('fileRecord', function() {
it('should call fileRecord successfully', function(done) {
//uncomment below and update the code to test fileRecord
//instance.fileRecord(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('getRecord', function() {
it('should call getRecord successfully', function(done) {
//uncomment below and update the code to test getRecord
//instance.getRecord(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('getRecordContent', function() {
it('should call getRecordContent successfully', function(done) {
//uncomment below and update the code to test getRecordContent
//instance.getRecordContent(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
describe('updateRecord', function() {
it('should call updateRecord successfully', function(done) {
//uncomment below and update the code to test updateRecord
//instance.updateRecord(function(error) {
// if (error) throw error;
//expect().to.be();
//});
done();
});
});
});
}));