You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: __tests__/api-writer/glua-api-writer.spec.ts
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ describe('GLua API Writer', () => {
102
102
parent: '_G',
103
103
dontDefineParent: true,
104
104
description: 'Explodes with an optional intensity.',
105
-
realm: 'Shared',
105
+
realm: 'shared',
106
106
type: 'libraryfunc',
107
107
url: 'na',
108
108
arguments: [
@@ -156,7 +156,7 @@ describe('GLua API Writer', () => {
156
156
name: 'MATERIAL_FOG',
157
157
address: 'Enums/MATERIAL_FOG',
158
158
description: 'The fog mode.',
159
-
realm: 'Client',
159
+
realm: 'client',
160
160
items: [
161
161
{
162
162
key: 'MATERIAL_FOG_NONE',
@@ -180,7 +180,7 @@ describe('GLua API Writer', () => {
180
180
],
181
181
});
182
182
183
-
expect(api).toEqual(`---@alias MATERIAL_FOG 0|1|-2147483648\n--- No fog\nMATERIAL_FOG_NONE = 0\n--- Linear fog\nMATERIAL_FOG_LINEAR = 1\nMATERIAL_FOG_LINEAR_BELOW_FOG_Z = -2147483648\n\n\n`);
183
+
expect(api).toEqual(`--- The fog mode.\n---@alias MATERIAL_FOG 0|1|-2147483648\n--- No fog\nMATERIAL_FOG_NONE = 0\n--- Linear fog\nMATERIAL_FOG_LINEAR = 1\nMATERIAL_FOG_LINEAR_BELOW_FOG_Z = -2147483648\n\n\n`);
184
184
});
185
185
186
186
it('should create enums for table enumerations',()=>{
@@ -190,7 +190,7 @@ describe('GLua API Writer', () => {
190
190
name: 'SCREENFADE',
191
191
address: 'Enums/SCREENFADE',
192
192
description: 'The screen fade mode.',
193
-
realm: 'Client',
193
+
realm: 'client',
194
194
items: [
195
195
{
196
196
key: '',
@@ -224,7 +224,7 @@ describe('GLua API Writer', () => {
224
224
],
225
225
});
226
226
227
-
expect(api).toEqual(`---@enum SCREENFADE\n--- The screen fade mode.\nSCREENFADE = {\n --- Instant fade in\n IN = 1,\n --- Slowly fade in\n OUT = 2,\n MODULATE = 4,\n --- Never disappear\n STAYOUT = 8,\n --- Used to purge all currently active screen fade effects...\n --- Multiple\n --- Lines\n PURGE = 16,\n}\n\n`);
227
+
expect(api).toEqual(`--- The screen fade mode.\n---@enum SCREENFADE\nSCREENFADE = {\n --- Instant fade in\n IN = 1,\n --- Slowly fade in\n OUT = 2,\n MODULATE = 4,\n --- Never disappear\n STAYOUT = 8,\n --- Used to purge all currently active screen fade effects...\n --- Multiple\n --- Lines\n PURGE = 16,\n}\n\n`);
228
228
});
229
229
230
230
it('should convert table<type> to type[]',()=>{
@@ -235,7 +235,7 @@ describe('GLua API Writer', () => {
235
235
parent: 'player',
236
236
dontDefineParent: true,
237
237
description: 'Returns a table of all bots on the server.',
238
-
realm: 'Shared',
238
+
realm: 'shared',
239
239
type: 'libraryfunc',
240
240
url: 'na',
241
241
returns: [
@@ -257,7 +257,7 @@ describe('GLua API Writer', () => {
257
257
parent: 'player',
258
258
dontDefineParent: true,
259
259
description: 'Returns a table of all bots on the server.',
260
-
realm: 'Shared',
260
+
realm: 'shared',
261
261
type: 'libraryfunc',
262
262
url: 'na',
263
263
returns: [
@@ -277,7 +277,7 @@ describe('GLua API Writer', () => {
277
277
parent: 'test',
278
278
dontDefineParent: true,
279
279
description: 'Just for testing.',
280
-
realm: 'Shared',
280
+
realm: 'shared',
281
281
type: 'libraryfunc',
282
282
url: 'na',
283
283
};
@@ -383,7 +383,7 @@ describe('GLua API Writer', () => {
383
383
parent: 'Vector',
384
384
dontDefineParent: true,
385
385
description: 'Returns where on the screen the specified position vector would appear.',
386
-
realm: 'Client',
386
+
realm: 'client',
387
387
type: 'libraryfunc',
388
388
url: 'na',
389
389
returns: [
@@ -406,7 +406,7 @@ describe('GLua API Writer', () => {
Copy file name to clipboardExpand all lines: __tests__/test-data/offline-sites/gmod-wiki/class-function-weapon-allowsautoswitchto.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ export const json = {
13
13
name: 'AllowsAutoSwitchTo',
14
14
address: 'Weapon:AllowsAutoSwitchTo',
15
15
description: 'Returns whether the weapon allows to being switched to when a better ( [Weapon:GetWeight](https://wiki.facepunch.com/gmod/Weapon:GetWeight) ) weapon is being picked up.',
Copy file name to clipboardExpand all lines: __tests__/test-data/offline-sites/gmod-wiki/enums-use.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ export const json = {
15
15
name: 'USE',
16
16
address: 'USE',
17
17
description: `\nEnumerations used by [ENTITY:Use](https://wiki.facepunch.com/gmod/ENTITY:Use).\n\nNot to be confused with [Enums/_USE](https://wiki.facepunch.com/gmod/Enums/_USE) used by [Entity:SetUseType](https://wiki.facepunch.com/gmod/Entity:SetUseType).\n`,
0 commit comments