diff --git a/exercises/practice/protein-translation/.meta/tests.toml b/exercises/practice/protein-translation/.meta/tests.toml index 5fb189070..b465aed23 100644 --- a/exercises/practice/protein-translation/.meta/tests.toml +++ b/exercises/practice/protein-translation/.meta/tests.toml @@ -87,11 +87,15 @@ description = "Translation stops if STOP codon in middle of three-codon sequence [2c2a2a60-401f-4a80-b977-e0715b23b93d] description = "Translation stops if STOP codon in middle of six-codon sequence" +[f6f92714-769f-4187-9524-e353e8a41a80] +description = "Sequence of two non-STOP codons does not translate to a STOP codon" + [1e75ea2a-f907-4994-ae5c-118632a1cb0f] description = "Non-existing codon can't translate" [9eac93f3-627a-4c90-8653-6d0a0595bc6f] description = "Unknown amino acids, not part of a codon, can't translate" +reimplements = "1e75ea2a-f907-4994-ae5c-118632a1cb0f" [9d73899f-e68e-4291-b1e2-7bf87c00f024] description = "Incomplete RNA sequence can't translate" diff --git a/exercises/practice/protein-translation/protein-translation.test.ts b/exercises/practice/protein-translation/protein-translation.test.ts index 6bb71e9cc..a165ff6e7 100644 --- a/exercises/practice/protein-translation/protein-translation.test.ts +++ b/exercises/practice/protein-translation/protein-translation.test.ts @@ -127,10 +127,9 @@ describe('Translate input RNA sequences into proteins', () => { expect(translate('UGGUGUUAUUAAUGGUUU')).toEqual(expected) }) - xit("Non-existing codon can't translate", () => { - expect(() => { - translate('AAA') - }).toThrow('Invalid codon') + xit('Sequence of two non-STOP codons does not translate to a STOP codon', () => { + const expected = ['Methionine', 'Methionine'] + expect(translate('AUGAUG')).toEqual(expected) }) xit("Unknown amino acids, not part of a codon, can't translate", () => {