Skip to content

Commit

Permalink
fix: Library return
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciolauffer committed Apr 25, 2022
1 parent 565576e commit 0e16bff
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
1 change: 0 additions & 1 deletion dist/resources/openui5/validator/Validator-dbg.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ sap.ui.define([
'sap/ui/core/Control',
'sap/ui/core/message/Message',
'openui5/validator/thirdparty/ajv.min'
//'ajv/dist/ajv.min'
],
/**
* Module Dependencies
Expand Down
6 changes: 4 additions & 2 deletions dist/resources/openui5/validator/library-dbg.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sap.ui.define([
* Module Dependencies
*
* @param {sap.ui.core.Core} Core - sap.ui.core.Core
* @returns {any} openui5.validator
* @returns {object} openui5.validator library
*/
function(Core) {
/**
Expand All @@ -26,7 +26,7 @@ function(Core) {
* @version 0.1.18
* @public
*/
return Core.initLibrary({
Core.initLibrary({
name: 'openui5.validator',
dependencies: [
'sap.ui.core'
Expand All @@ -35,4 +35,6 @@ function(Core) {
noLibraryCSS: true,
version: '0.1.18'
});

return openui5.validator; // eslint-disable-line
});
2 changes: 1 addition & 1 deletion dist/resources/openui5/validator/library-preload.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/resources/openui5/validator/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* openui5-validator
* (c) Copyright 2017-2022 Mauricio Lauffer
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/sap.ui.define(["sap/ui/core/Core","sap/ui/core/library"],function(i){return i.initLibrary({name:"openui5.validator",dependencies:["sap.ui.core"],controls:["openui5.validator.Validator"],noLibraryCSS:true,version:"0.1.18"})});
*/sap.ui.define(["sap/ui/core/Core","sap/ui/core/library"],function(i){i.initLibrary({name:"openui5.validator",dependencies:["sap.ui.core"],controls:["openui5.validator.Validator"],noLibraryCSS:true,version:"0.1.18"});return openui5.validator});
1 change: 0 additions & 1 deletion src/openui5/validator/Validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ sap.ui.define([
'sap/ui/core/Control',
'sap/ui/core/message/Message',
'openui5/validator/thirdparty/ajv.min'
//'ajv/dist/ajv.min'
],
/**
* Module Dependencies
Expand Down
6 changes: 4 additions & 2 deletions src/openui5/validator/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sap.ui.define([
* Module Dependencies
*
* @param {sap.ui.core.Core} Core - sap.ui.core.Core
* @returns {any} openui5.validator
* @returns {object} openui5.validator library
*/
function(Core) {
/**
Expand All @@ -24,7 +24,7 @@ function(Core) {
* @version ${version}
* @public
*/
return Core.initLibrary({
Core.initLibrary({
name: 'openui5.validator',
dependencies: [
'sap.ui.core'
Expand All @@ -33,4 +33,6 @@ function(Core) {
noLibraryCSS: true,
version: '${version}'
});

return openui5.validator; // eslint-disable-line
});
2 changes: 2 additions & 0 deletions test/unit/Validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ function(UI5Object, coreLibrary, Message, XMLView, Validator) {
'</VBox></Page></mvc:View>';

/**
* Schema
*
* @returns {object} Schema
*/
function getSchema() {
return {
Expand Down
1 change: 1 addition & 0 deletions test/unit/unitTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ QUnit.config.reorder = false;

sap.ui.getCore().attachInit(function() {
sap.ui.require([
'openui5/validator/library',
'test/unit/allTests'
], function() {
if (window.blanket) {
Expand Down

0 comments on commit 0e16bff

Please sign in to comment.