Skip to content

Commit 1f7309d

Browse files
author
Kanchalai Tanglertsampan
committed
Update existed tests
1 parent 10bbdf5 commit 1f7309d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/baselines/reference/decoratorMetadataWithImportDeclarationNameCollision4.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ var MyClass = (function () {
4646
}
4747
MyClass = __decorate([
4848
someDecorator,
49-
__metadata('design:paramtypes', [Object])
49+
__metadata('design:paramtypes', [(typeof (_a = typeof db_1.default !== 'undefined' && db_1.default.db) === 'function' && _a) || Object])
5050
], MyClass);
5151
return MyClass;
52+
var _a;
5253
}());
5354
exports.MyClass = MyClass;

tests/cases/unittests/transpile.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ var x = 0;`, {
255255
compilerOptions: {
256256
target: ScriptTarget.ES5,
257257
module: ModuleKind.CommonJS,
258+
moduleResolution: ModuleResolutionKind.NodeJs,
258259
emitDecoratorMetadata: true,
259260
experimentalDecorators: true,
260261
isolatedModules: true,
@@ -273,6 +274,7 @@ var x = 0;`, {
273274
compilerOptions: {
274275
target: ScriptTarget.ES5,
275276
module: ModuleKind.System,
277+
moduleResolution: ModuleResolutionKind.NodeJs,
276278
emitDecoratorMetadata: true,
277279
experimentalDecorators: true,
278280
isolatedModules: true,

0 commit comments

Comments
 (0)