Skip to content

Commit

Permalink
AG-1221 remove extraneous code
Browse files Browse the repository at this point in the history
  • Loading branch information
sagely1 committed Jan 23, 2024
1 parent 4292805 commit 765a705
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/server/components/comparison.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ export async function getProteinComparisonGenes(method: string) {
.lean()
.sort({ hgnc_symbol: 1, tissue: 1 })
.exec();
} else {
// TODO capture corner scenarios
throw 'unknown method selected: ' + method;
}

if (items) {
Expand Down
3 changes: 1 addition & 2 deletions tests/gene-comparison-tool.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ test.describe('specific viewport block', () => {
});

test('sub-category is SRM by default', async ({ page }) => {
test.slow();
// set category for Protein - Differential Expression
await page.goto('/genes/comparison?category=Protein+-+Differential+Expression');

Expand All @@ -25,7 +24,7 @@ test.describe('specific viewport block', () => {
.not.toBeVisible({ timeout: 150000});

// expect sub-category dropdown to be SRM
const dropdown = await page.locator('#subCategory');
const dropdown = page.locator('#subCategory');
await expect(dropdown).toHaveText('Targeted Selected Reaction Monitoring (SRM)');
});
});

0 comments on commit 765a705

Please sign in to comment.