From e8d88b5462f91dadfa87bfa216cd2ac6506e4c68 Mon Sep 17 00:00:00 2001 From: Patrick Kodal <6306551+ladokp@users.noreply.github.com> Date: Thu, 1 Feb 2024 09:18:33 +0100 Subject: [PATCH] fixed protein-translation.spec.coffee next try to fix usage of 'toThrowError' --- .../protein-translation/protein-translation.spec.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/exercises/practice/protein-translation/protein-translation.spec.coffee b/exercises/practice/protein-translation/protein-translation.spec.coffee index 3155567..4dfb574 100644 --- a/exercises/practice/protein-translation/protein-translation.spec.coffee +++ b/exercises/practice/protein-translation/protein-translation.spec.coffee @@ -132,6 +132,5 @@ describe 'ProteinTranslation', -> expect(results).toEqual expected xit "Non-existing codon can't translate", -> - expect -> - ProteinTranslation.proteins("AAA") - .toThrowError(Error, "Invalid codon") + expect(ProteinTranslation.proteins("AAA")) + .toThrowError(Error, 'Invalid codon')