Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update existed tests
  • Loading branch information
Kanchalai Tanglertsampan committed Jun 17, 2016
commit 1f7309d8ac828d9bc66ef1228d21f2d6e49d43a4
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ var MyClass = (function () {
}
MyClass = __decorate([
someDecorator,
__metadata('design:paramtypes', [Object])
__metadata('design:paramtypes', [(typeof (_a = typeof db_1.default !== 'undefined' && db_1.default.db) === 'function' && _a) || Object])
], MyClass);
return MyClass;
var _a;
}());
exports.MyClass = MyClass;
2 changes: 2 additions & 0 deletions tests/cases/unittests/transpile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ var x = 0;`, {
compilerOptions: {
target: ScriptTarget.ES5,
module: ModuleKind.CommonJS,
moduleResolution: ModuleResolutionKind.NodeJs,
emitDecoratorMetadata: true,
experimentalDecorators: true,
isolatedModules: true,
Expand All @@ -273,6 +274,7 @@ var x = 0;`, {
compilerOptions: {
target: ScriptTarget.ES5,
module: ModuleKind.System,
moduleResolution: ModuleResolutionKind.NodeJs,
emitDecoratorMetadata: true,
experimentalDecorators: true,
isolatedModules: true,
Expand Down