(function (_, kotlin_kotlin, kotlin_kotlin_test, kotlin_com_ustadmobile_app_app_react) { 'use strict'; //region block: imports var protoOf = kotlin_kotlin.$_$.bg; var classMeta = kotlin_kotlin.$_$.me; var setMetadataFor = kotlin_kotlin.$_$.cg; var VOID = kotlin_kotlin.$_$.g; var suite = kotlin_kotlin_test.$_$.b; var test = kotlin_kotlin_test.$_$.c; var Unit_getInstance = kotlin_kotlin.$_$.i6; var get_SEARCH_PARAM_KEY_API_URL = kotlin_com_ustadmobile_app_app_react.$_$.a; var resolveEndpoint = kotlin_com_ustadmobile_app_app_react.$_$.b; var assertEquals = kotlin_kotlin_test.$_$.a; //endregion //region block: pre-declaration setMetadataFor(JsIntlWrapperTest, 'JsIntlWrapperTest', classMeta, VOID, VOID, JsIntlWrapperTest); setMetadataFor(WebEndpointResolverTest, 'WebEndpointResolverTest', classMeta, VOID, VOID, WebEndpointResolverTest); //endregion function JsIntlWrapperTest() { } protoOf(JsIntlWrapperTest).givenValidLocale_whenFormatCalled_thenShouldFormatDate_3xtcj4_k$ = function () { console.log('Now: ' + (new Intl.DateTimeFormat('en')).format(new Date())); }; function test_fun_izoufj() { suite('JsIntlWrapperTest', false, test_fun$JsIntlWrapperTest_test_fun_8p9xj9); } function test_fun$JsIntlWrapperTest_test_fun_8p9xj9() { test('givenValidLocale_whenFormatCalled_thenShouldFormatDate', false, test_fun$JsIntlWrapperTest_test_fun$givenValidLocale_whenFormatCalled_thenShouldFormatDate_test_fun_sh86wi); return Unit_getInstance(); } function test_fun$JsIntlWrapperTest_test_fun$givenValidLocale_whenFormatCalled_thenShouldFormatDate_test_fun_sh86wi() { var tmp = new JsIntlWrapperTest(); tmp.givenValidLocale_whenFormatCalled_thenShouldFormatDate_3xtcj4_k$(); return Unit_getInstance(); } function WebEndpointResolverTest() { } protoOf(WebEndpointResolverTest).givenApiUrlInSearchParams_whenEndpointResolved_thenShouldReturnSearchParam_5fpqw9_k$ = function () { // Inline function 'kotlin.arrayOf' call // Inline function 'js.array.tupleOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.arrayOf' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.js.asDynamic' call // Inline function 'kotlin.js.unsafeCast' call // Inline function 'kotlin.js.asDynamic' call var tmp$ret$8 = [[get_SEARCH_PARAM_KEY_API_URL(), 'http://endpoint.ustadmobile.app/']]; var apiUrl = resolveEndpoint('http://localhost:8087/', new URLSearchParams(tmp$ret$8)); assertEquals('http://endpoint.ustadmobile.app/', apiUrl); }; protoOf(WebEndpointResolverTest).givenRootHref_whenEndpointIsResolved_thenShouldReturnHref_vqmznw_k$ = function () { // Inline function 'kotlin.emptyArray' call var tmp$ret$0 = []; var apiUrl = resolveEndpoint('http://endpoint.ustadmobile.app/', new URLSearchParams(tmp$ret$0)); assertEquals('http://endpoint.ustadmobile.app/', apiUrl); }; protoOf(WebEndpointResolverTest).givenHrefWithDevelopmentLink_whenEndpointIsResolved_thenShouldReturnHref_pt6aa7_k$ = function () { // Inline function 'kotlin.emptyArray' call var tmp$ret$0 = []; var apiUrl = resolveEndpoint('http://endpoint.ustadmobile.app/#/PageName', new URLSearchParams(tmp$ret$0)); assertEquals('http://endpoint.ustadmobile.app/', apiUrl); }; protoOf(WebEndpointResolverTest).givenHrefWithProductionLink_whenEndpointIsResolved_thenShouldReturnHref_bq0823_k$ = function () { // Inline function 'kotlin.emptyArray' call var tmp$ret$0 = []; var apiUrl = resolveEndpoint('http://endpoint.ustadmobile.app/umapp/#/PageName', new URLSearchParams(tmp$ret$0)); assertEquals('http://endpoint.ustadmobile.app/', apiUrl); }; function test_fun_izoufj_0() { suite('WebEndpointResolverTest', false, test_fun$WebEndpointResolverTest_test_fun_vi30zh); } function test_fun$WebEndpointResolverTest_test_fun_vi30zh() { test('givenApiUrlInSearchParams_whenEndpointResolved_thenShouldReturnSearchParam', false, test_fun$WebEndpointResolverTest_test_fun$givenApiUrlInSearchParams_whenEndpointResolved_thenShouldReturnSearchParam_test_fun_bobhhz); test('givenRootHref_whenEndpointIsResolved_thenShouldReturnHref', false, test_fun$WebEndpointResolverTest_test_fun$givenRootHref_whenEndpointIsResolved_thenShouldReturnHref_test_fun_bvl5u6); test('givenHrefWithDevelopmentLink_whenEndpointIsResolved_thenShouldReturnHref', false, test_fun$WebEndpointResolverTest_test_fun$givenHrefWithDevelopmentLink_whenEndpointIsResolved_thenShouldReturnHref_test_fun_nnwzzl); test('givenHrefWithProductionLink_whenEndpointIsResolved_thenShouldReturnHref', false, test_fun$WebEndpointResolverTest_test_fun$givenHrefWithProductionLink_whenEndpointIsResolved_thenShouldReturnHref_test_fun_yoz2fr); return Unit_getInstance(); } function test_fun$WebEndpointResolverTest_test_fun$givenApiUrlInSearchParams_whenEndpointResolved_thenShouldReturnSearchParam_test_fun_bobhhz() { var tmp = new WebEndpointResolverTest(); tmp.givenApiUrlInSearchParams_whenEndpointResolved_thenShouldReturnSearchParam_5fpqw9_k$(); return Unit_getInstance(); } function test_fun$WebEndpointResolverTest_test_fun$givenRootHref_whenEndpointIsResolved_thenShouldReturnHref_test_fun_bvl5u6() { var tmp = new WebEndpointResolverTest(); tmp.givenRootHref_whenEndpointIsResolved_thenShouldReturnHref_vqmznw_k$(); return Unit_getInstance(); } function test_fun$WebEndpointResolverTest_test_fun$givenHrefWithDevelopmentLink_whenEndpointIsResolved_thenShouldReturnHref_test_fun_nnwzzl() { var tmp = new WebEndpointResolverTest(); tmp.givenHrefWithDevelopmentLink_whenEndpointIsResolved_thenShouldReturnHref_pt6aa7_k$(); return Unit_getInstance(); } function test_fun$WebEndpointResolverTest_test_fun$givenHrefWithProductionLink_whenEndpointIsResolved_thenShouldReturnHref_test_fun_yoz2fr() { var tmp = new WebEndpointResolverTest(); tmp.givenHrefWithProductionLink_whenEndpointIsResolved_thenShouldReturnHref_bq0823_k$(); return Unit_getInstance(); } //region block: tests (function () { suite('com.ustadmobile.jsmodules', false, function () { test_fun_izoufj(); }); suite('com.ustadmobile.util', false, function () { test_fun_izoufj_0(); }); }()); //endregion return _; }(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlin-kotlin-test-kotlin-test-js-ir.js'), require('./UstadMobile-app-react.js'))); //# sourceMappingURL=UstadMobile-app-react-test.js.map