Skip to content

Commit 0033a29

Browse files
authored
Merge pull request #238 from unipept/codex/fix-tests-for-protinfo-to-check-new-field
Fix protinfo tests for new name field
2 parents 7de2106 + 87c5049 commit 0033a29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/commands/unipept/protinfo.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ beforeEach(() => {
1313
test('test with default args', async () => {
1414
const command = new Protinfo();
1515
await command.run(["P78330"], { header: true, format: "csv" });
16-
expect(output[0].startsWith("protein,taxon_id,taxon_name,taxon_rank,ec_number,go_term,ipr_code")).toBeTruthy();
17-
expect(output[1].startsWith("P78330,9606,Homo sapiens")).toBeTruthy();
16+
expect(output[0].startsWith("protein,name,taxon_id,taxon_name,taxon_rank,ec_number,go_term,ipr_code")).toBeTruthy();
17+
expect(output[1].startsWith("P78330,Phosphoserine phosphatase,9606,Homo sapiens")).toBeTruthy();
1818
expect(output.length).toBe(2);
1919
});
2020

2121
test('test with fasta', async () => {
2222
const command = new Protinfo();
2323
await command.run([">test", "P78330"], { header: true, format: "csv" });
24-
expect(output[0].startsWith("fasta_header,protein,taxon_id,taxon_name,taxon_rank,ec_number,go_term,ipr_code")).toBeTruthy();
25-
expect(output[1].startsWith(">test,P78330,9606,Homo sapiens")).toBeTruthy();
24+
expect(output[0].startsWith("fasta_header,protein,name,taxon_id,taxon_name,taxon_rank,ec_number,go_term,ipr_code")).toBeTruthy();
25+
expect(output[1].startsWith(">test,P78330,Phosphoserine phosphatase,9606,Homo sapiens")).toBeTruthy();
2626
expect(output.length).toBe(2);
2727
});

0 commit comments

Comments
 (0)