Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson authored Oct 31, 2024
1 parent 8b57fd4 commit 3fea71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/tests/pages/submission/template.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test.describe('The submit page', () => {

expect(download.suggestedFilename()).toBe('Test_Dummy_Organism_metadata_template.tsv');
const content = await getDownloadedContent(download);
expect(content).toStrictEqual('submissionId\tcountry\tdate\tdivision\thost\tpangoLineage\tregion\n');
expect(content).toStrictEqual('submissionId\tcountry\tdate\tdivision\thost\tpangoLineage\tregion\tversionComment\n');
});

test('should download the metadata file template for revision', async ({
Expand All @@ -35,7 +35,7 @@ test.describe('The submit page', () => {

expect(download.suggestedFilename()).toBe('Test_Dummy_Organism_metadata_revision_template.tsv');
const content = await getDownloadedContent(download);
expect(content).toStrictEqual('accession\tsubmissionId\tcountry\tdate\tdivision\thost\tpangoLineage\tregion\n');
expect(content).toStrictEqual('accession\tsubmissionId\tcountry\tdate\tdivision\thost\tpangoLineage\tregion\tversionComment\n');
});

async function getDownloadedContent(download: Download) {
Expand Down

0 comments on commit 3fea71f

Please sign in to comment.