aboutsummaryrefslogtreecommitdiff
path: root/test-data-generator/index.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-05-03 09:19:07 -0500
committermat <github@matdoes.dev>2021-05-03 09:19:07 -0500
commitd6404b6a81d8d64dac1aafcde6b7f8d80fcc9f61 (patch)
treef71e2666e1c5bba2ddabdf4fc7558f18da8971ea /test-data-generator/index.ts
parentebe0ac85f8ca440ac846e2c17582e3394064b8e3 (diff)
downloadskyblock-api-d6404b6a81d8d64dac1aafcde6b7f8d80fcc9f61.tar.gz
skyblock-api-d6404b6a81d8d64dac1aafcde6b7f8d80fcc9f61.tar.bz2
skyblock-api-d6404b6a81d8d64dac1aafcde6b7f8d80fcc9f61.zip
fix tests
Diffstat (limited to 'test-data-generator/index.ts')
-rw-r--r--test-data-generator/index.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/test-data-generator/index.ts b/test-data-generator/index.ts
index 45a5991..408f76a 100644
--- a/test-data-generator/index.ts
+++ b/test-data-generator/index.ts
@@ -12,10 +12,10 @@ import path from 'path'
const playerUuids = [
- '6536bfed869548fd83a1ecd24cf2a0fd',
- '4133cab5a7534f3f9bb636fc06a1f0fd',
- 'ef3bb867eec048a1a9b92b451f0ffc66',
- 'e403573808ad45ddb5c48ec7c4db0144',
+ '6536bfed869548fd83a1ecd24cf2a0fd', // py5
+ '4133cab5a7534f3f9bb636fc06a1f0fd', // LostEJ
+ 'ef3bb867eec048a1a9b92b451f0ffc66', // NMART
+ 'e403573808ad45ddb5c48ec7c4db0144', // Dededecent
]
async function writeTestData(requestPath: string, name: string, contents: any) {
@@ -40,6 +40,8 @@ async function addConstants() {
const constantData = await constants.fetchJSONConstant(constantName + '.json')
await writeTestData('constants', constantName, constantData)
}
+ const constantValues = await constants.fetchConstantValues()
+ await writeTestData('constants', 'values', constantValues)
}
async function main() {
@@ -52,6 +54,7 @@ async function main() {
}
await writeTestData('', 'mojang', uuidsToUsername)
+
await addConstants()
}