Skip to content

Commit 67d862a

Browse files
Use lib.core.d.ts instead of lib.d.ts for test cases
1 parent 6904ddf commit 67d862a

File tree

13 files changed

+1140
-5
lines changed

13 files changed

+1140
-5
lines changed

gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ module.exports = function(grunt)
7878

7979
settings.inputFiles = [path];
8080
settings.expandInputFiles();
81+
settings.compilerOptions.noLib = true;
8182
TD.resetReflectionID();
8283

8384
var result = converter.convert(settings.inputFiles, settings);

test/converter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ describe('Converter', function() {
7575
it('converts fixtures', function() {
7676
settings.inputFiles = [path];
7777
settings.expandInputFiles();
78+
settings.compilerOptions.noLib = true;
7879
TD.resetReflectionID();
7980
result = converter.convert(settings.inputFiles, settings);
8081
});

test/converter/basic/classes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference path="../lib.core.d.ts" />
2+
13
/**
24
* TestClass comment short text.
35
*

test/converter/basic/enums.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference path="../lib.core.d.ts" />
2+
13
export enum TestEnum
24
{
35
EnumValue1,

test/converter/basic/functions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference path="../lib.core.d.ts" />
2+
13
/**
24
* testFunction comment short text.
35
* @param testParam Test parameter.

test/converter/basic/specs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"type": {
113113
"type": "reference",
114114
"name": "TestClass",
115-
"symbolID": 14743
115+
"symbolID": 409
116116
}
117117
},
118118
{

test/converter/generic-class/generic-class.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference path="../lib.core.d.ts" />
2+
13
/**
24
* GenericClass short text.
35
* @param T Generic parameter.

test/converter/generic-function/generic-function.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/// <reference path="../lib.core.d.ts" />
2+
13
/**
24
* Generic function short text.
35
* @param T Generic function type parameter.

test/converter/generic-function/specs.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"type": {
4545
"type": "reference",
4646
"name": "Object",
47-
"symbolID": 29501
47+
"symbolID": 833
4848
}
4949
}
5050
],
@@ -64,7 +64,7 @@
6464
"constraint": {
6565
"type": "reference",
6666
"name": "Object",
67-
"symbolID": 29501
67+
"symbolID": 833
6868
}
6969
}
7070
}
@@ -75,7 +75,7 @@
7575
"constraint": {
7676
"type": "reference",
7777
"name": "Object",
78-
"symbolID": 29501
78+
"symbolID": 833
7979
}
8080
}
8181
}

0 commit comments

Comments
 (0)