Skip to content

Commit

Permalink
Correct expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed May 29, 2024
1 parent 6d9324a commit 71972f1
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions api/server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,12 @@ describe('import/export', () => {
const exportResponse = response.body as ExportResponse;

expect(exportResponse.settings.itemSortOrderCustom).toEqual([
'sunset',
'tag',
'rarity',
'primStat',
'season',
'ammoType',
'rarity',
'typeName',
'name',
]);
Expand All @@ -108,9 +111,12 @@ describe('profile', () => {
const profileResponse = response.body as ProfileResponse;

expect(profileResponse.settings!.itemSortOrderCustom).toEqual([
'sunset',
'tag',
'rarity',
'primStat',
'season',
'ammoType',
'rarity',
'typeName',
'name',
]);
Expand All @@ -125,9 +131,12 @@ describe('profile', () => {
const profileResponse = response.body as ProfileResponse;

expect(profileResponse.settings!.itemSortOrderCustom).toEqual([
'sunset',
'tag',
'rarity',
'primStat',
'season',
'ammoType',
'rarity',
'typeName',
'name',
]);
Expand All @@ -152,12 +161,12 @@ describe('profile', () => {
const response = await postRequestAuthed('/delete_all_data').expect(200);

expect(response.body.deleted).toEqual({
itemHashTags: 71,
loadouts: 37,
searches: 205,
settings: 1,
loadouts: 12,
tags: 51,
triumphs: 0,
searches: 0,
itemHashTags: 0,
tags: 592,
triumphs: 30,
});

// Now re-export and make sure it's all gone
Expand Down

0 comments on commit 71972f1

Please sign in to comment.