Add Guardians of the Rift.

This commit is contained in:
maxswa
2022-04-18 15:44:45 -04:00
parent 3a72315498
commit e77737f422
6 changed files with 33 additions and 5 deletions

View File

@@ -88,6 +88,7 @@ test('Parse CSV to json', () => {
1,6143
4814,898
37,225
23,467
382,2780
944,3000
1981,1452
@@ -171,6 +172,7 @@ test('Parse CSV to json', () => {
},
lastManStanding: { rank: 4814, score: 898 },
soulWarsZeal: { rank: 37, score: 225 },
riftsClosed: { rank: 23, score: 467 },
clues: {
all: { rank: 32, score: 12148 },
beginner: { rank: 3105, score: 76 },
@@ -236,9 +238,11 @@ test('Parse CSV to json', () => {
});
test('Parse CSV with unknown activity', () => {
const statsWithUnknownActivity = lynxTitanStats + `
const statsWithUnknownActivity = `${lynxTitanStats}
-1,-1`;
expect(() => parseStats(statsWithUnknownActivity)).toThrow(INVALID_FORMAT_ERROR);
expect(() => parseStats(statsWithUnknownActivity)).toThrow(
INVALID_FORMAT_ERROR
);
});
test('Parse invalid CSV', () => {