Skip to content

Commit 8d13a65

Browse files
committed
Fix test chainedImportAlias to use all of its file regions
1 parent 14f9ed9 commit 8d13a65

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

tests/baselines/reference/chainedImportAlias.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ export module m {
66
}
77

88
//// [chainedImportAlias_file1.ts]
9-
import x = require('chainedImportAlias_file1');
9+
import x = require('chainedImportAlias_file0');
1010
import y = x;
11-
declare var console: {
12-
log(message?: any);
13-
};
14-
console.log(y);
11+
y.m.foo();
1512

1613

14+
//// [chainedImportAlias_file0.js]
15+
(function (m) {
16+
function foo() {
17+
}
18+
m.foo = foo;
19+
})(exports.m || (exports.m = {}));
20+
var m = exports.m;
1721
//// [chainedImportAlias_file1.js]
18-
var x = require('chainedImportAlias_file1');
22+
var x = require('chainedImportAlias_file0');
1923
var y = x;
20-
console.log(y);
24+
y.m.foo();

tests/cases/compiler/chainedImportAlias.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ export module m {
55
}
66

77
// @Filename: chainedImportAlias_file1.ts
8-
import x = require('chainedImportAlias_file1');
8+
import x = require('chainedImportAlias_file0');
99
import y = x;
10-
declare var console: {
11-
log(message?: any);
12-
};
13-
console.log(y);
10+
y.m.foo();

0 commit comments

Comments
 (0)