Skip to content

Commit 3716ba7

Browse files
committed
rebuild specs
This resets the specs so tests pass. See #828 for related issue
1 parent d0b65a0 commit 3716ba7

File tree

26 files changed

+666
-708
lines changed

26 files changed

+666
-708
lines changed

package-lock.json

Lines changed: 398 additions & 338 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"istanbul": "^0.4.1",
6464
"mocha": "^5.0.4",
6565
"mockery": "^2.1.0",
66+
"ts-node": "^7.0.0",
6667
"tslint": "^5.9.1"
6768
},
6869
"files": [
@@ -75,7 +76,8 @@
7576
"scripts": {
7677
"test": "mocha -t 10000 dist/test",
7778
"build": "grunt build_and_test",
78-
"prepublish": "npm run build"
79+
"prepublish": "npm run build",
80+
"grunt": "grunt"
7981
},
8082
"keywords": [
8183
"typescript",

src/test/converter/constructor-properties/specs.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
"id": 4,
126126
"name": "x",
127127
"kind": 1024,
128-
"kindString": "Property",
129128
"flags": {
130129
"isConstructorProperty": true,
131130
"isPublic": true
@@ -135,7 +134,7 @@
135134
},
136135
"sources": [
137136
{
138-
"fileName": "constructor-properties.ts",
137+
"fileName": "%BASE%/constructor-properties/constructor-properties.ts",
139138
"line": 11,
140139
"character": 24
141140
}
@@ -149,7 +148,6 @@
149148
"id": 5,
150149
"name": "y",
151150
"kind": 1024,
152-
"kindString": "Property",
153151
"flags": {
154152
"isConstructorProperty": true,
155153
"isPublic": true
@@ -159,7 +157,7 @@
159157
},
160158
"sources": [
161159
{
162-
"fileName": "constructor-properties.ts",
160+
"fileName": "%BASE%/constructor-properties/constructor-properties.ts",
163161
"line": 11,
164162
"character": 41
165163
}
@@ -364,8 +362,7 @@
364362
},
365363
"inheritedFrom": {
366364
"type": "reference",
367-
"name": "Vector2.x",
368-
"id": 4
365+
"name": "Vector2.x"
369366
}
370367
},
371368
{
@@ -393,8 +390,7 @@
393390
},
394391
"overwrites": {
395392
"type": "reference",
396-
"name": "Vector2.y",
397-
"id": 5
393+
"name": "Vector2.y"
398394
}
399395
},
400396
{

src/test/converter/decorators/specs.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
"name": "decoratorAtom",
4949
"type": {
5050
"type": "reference",
51-
"name": "decoratorAtom",
52-
"id": 5
51+
"name": "decoratorAtom"
5352
}
5453
},
5554
{
@@ -69,7 +68,6 @@
6968
"id": 4,
7069
"name": "decoratedMethod",
7170
"kind": 4096,
72-
"kindString": "Call signature",
7371
"flags": {},
7472
"comment": {
7573
"shortText": "A decorated method."
@@ -110,15 +108,7 @@
110108
"id": 5,
111109
"name": "decoratorAtom",
112110
"kind": 64,
113-
"kindString": "Function",
114111
"flags": {},
115-
"decorates": [
116-
{
117-
"type": "reference",
118-
"name": "decoratedMethod",
119-
"id": 3
120-
}
121-
],
122112
"signatures": [
123113
{
124114
"id": 6,
@@ -187,7 +177,7 @@
187177
],
188178
"sources": [
189179
{
190-
"fileName": "decorators.ts",
180+
"fileName": "%BASE%/decorators/decorators.ts",
191181
"line": 21,
192182
"character": 22
193183
}

src/test/converter/destructuring/specs.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
"id": 5,
1919
"name": "destructArrayA",
2020
"kind": 32,
21-
"kindString": "Variable",
2221
"flags": {},
2322
"sources": [
2423
{
25-
"fileName": "destructuring.ts",
24+
"fileName": "%BASE%/destructuring/destructuring.ts",
2625
"line": 10,
2726
"character": 21
2827
}
@@ -214,11 +213,10 @@
214213
"id": 4,
215214
"name": "destructObjectC",
216215
"kind": 32,
217-
"kindString": "Variable",
218216
"flags": {},
219217
"sources": [
220218
{
221-
"fileName": "destructuring.ts",
219+
"fileName": "%BASE%/destructuring/destructuring.ts",
222220
"line": 4,
223221
"character": 56
224222
}

src/test/converter/enum/specs.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@
217217
"id": 4,
218218
"name": "EnumValue2",
219219
"kind": 16,
220-
"kindString": "Enumeration member",
221220
"flags": {
222221
"isExported": true
223222
},
@@ -226,7 +225,7 @@
226225
},
227226
"sources": [
228227
{
229-
"fileName": "enum.ts",
228+
"fileName": "%BASE%/enum/enum.ts",
230229
"line": 14,
231230
"character": 14
232231
}
@@ -237,7 +236,6 @@
237236
"id": 5,
238237
"name": "EnumValue3",
239238
"kind": 16,
240-
"kindString": "Enumeration member",
241239
"flags": {
242240
"isExported": true
243241
},
@@ -246,7 +244,7 @@
246244
},
247245
"sources": [
248246
{
249-
"fileName": "enum.ts",
247+
"fileName": "%BASE%/enum/enum.ts",
250248
"line": 19,
251249
"character": 14
252250
}

src/test/converter/events-overloads/specs.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"id": 4,
4242
"name": "on",
4343
"kind": 8388608,
44-
"kindString": "Event",
4544
"flags": {},
4645
"comment": {
4746
"shortText": "Subscribe for a general event by name."
@@ -51,7 +50,6 @@
5150
"id": 5,
5251
"name": "event",
5352
"kind": 32768,
54-
"kindString": "Parameter",
5553
"flags": {},
5654
"comment": {
5755
"text": "The name of the event to subscribe for."

src/test/converter/export-assignment/specs.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"id": 4,
3636
"name": "x",
3737
"kind": 32768,
38-
"kindString": "Parameter",
3938
"flags": {},
4039
"type": {
4140
"type": "intrinsic",
@@ -46,7 +45,6 @@
4645
"id": 5,
4746
"name": "y",
4847
"kind": 32768,
49-
"kindString": "Parameter",
5048
"flags": {},
5149
"type": {
5250
"type": "intrinsic",

src/test/converter/export-with-local/specs.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,12 @@
7070
"id": 4,
7171
"name": "add",
7272
"kind": 4096,
73-
"kindString": "Call signature",
7473
"flags": {},
7574
"parameters": [
7675
{
7776
"id": 5,
7877
"name": "x",
7978
"kind": 32768,
80-
"kindString": "Parameter",
8179
"flags": {},
8280
"type": {
8381
"type": "intrinsic",

src/test/converter/export/specs.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@
4949
"id": 4,
5050
"name": "add",
5151
"kind": 4096,
52-
"kindString": "Call signature",
5352
"flags": {},
5453
"parameters": [
5554
{
5655
"id": 5,
5756
"name": "x",
5857
"kind": 32768,
59-
"kindString": "Parameter",
6058
"flags": {},
6159
"type": {
6260
"type": "intrinsic",

0 commit comments

Comments
 (0)