From 4b57f38e4e955170859c7dc12f605b66b5ee05ef Mon Sep 17 00:00:00 2001 From: Artem Kobzar Date: Mon, 4 Mar 2024 14:40:40 +0000 Subject: [PATCH] [K/JS] Regenerate tests after merging two different changes into TS generator --- .../interfaces-in-exported-file/interfaces.kt | 4 +++- .../objects-in-exported-file/objects__main.ts | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.kt b/js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.kt index 5646f723558..3eae5e6dcd4 100644 --- a/js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.kt +++ b/js/js.translator/testData/typescript-export/interfaces-in-exported-file/interfaces.kt @@ -67,15 +67,17 @@ interface InterfaceWithCompanion { } } - // KT-64708 + external interface ExportedParentInterface + interface ExportedChildInterface : ExportedParentInterface { fun bar() } // KT-63907 + interface InterfaceWithDefaultArguments { fun foo(x: Int = 0) = x fun bar(x: Int = 0) = x diff --git a/js/js.translator/testData/typescript-export/objects-in-exported-file/objects__main.ts b/js/js.translator/testData/typescript-export/objects-in-exported-file/objects__main.ts index 9a70c9ce1fa..347735a0de5 100644 --- a/js/js.translator/testData/typescript-export/objects-in-exported-file/objects__main.ts +++ b/js/js.translator/testData/typescript-export/objects-in-exported-file/objects__main.ts @@ -7,8 +7,6 @@ import createNested1 = JS_TESTS.foo.createNested1; import createNested2 = JS_TESTS.foo.createNested2; import createNested3 = JS_TESTS.foo.createNested3; import WithSimpleObjectInside = JS_TESTS.foo.WithSimpleObjectInside; -import BaseWithCompanion = JS_TESTS.foo.BaseWithCompanion; -import ChildWithCompanion = JS_TESTS.foo.ChildWithCompanion; function assert(condition: boolean) { if (!condition) { @@ -36,6 +34,5 @@ function box(): string { assert(WithSimpleObjectInside.value === "WithSimpleObjectInside"); assert(WithSimpleObjectInside.SimpleObject.value === "SimpleObject"); - return "OK"; } \ No newline at end of file