Skip to content

Fix unit tests for RNA Transcription exercise - #447

Merged
tejasbubane merged 1 commit into
exercism:masterfrom
xarxziux:rna-transcription-436
Sep 2, 2018
Merged

tejasbubane merged 1 commit into
exercism:masterfrom
xarxziux:rna-transcription-436

Conversation

@xarxziux

Copy link
Copy Markdown
Contributor

Change the unit tests for the RNA Transcription exercise to accept a named function export instead of a default class export as per issues #274 and #436:

  • Change default class import Transcriptor to named function import { toRna }.
  • Remove unnecessary const transcriptor = new Transcriptor(); line.
  • Change transcriptor.toRna(... calls to toRna(....
  • Redesign example.js file to export a single named function.

Change the unit tests for the RNA Transcription exercise to accept a named function export instead of a default class export as per issues exercism#274 and exercism#436:
- Change default class import `Transcriptor` to named function import `{ toRna }`.
- Remove unnecessary `const transcriptor = new Transcriptor();` line.
- Change `transcriptor.toRna(...` calls to `toRna(...`.
- Redesign example.js file to export a single named function.
@tejasbubane
tejasbubane merged commit 516d074 into exercism:master Sep 2, 2018
@xarxziux
xarxziux deleted the rna-transcription-436 branch September 2, 2018 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants