Skip to content

Fix unit tests and example for Pangram exercise - #462

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

tejasbubane merged 1 commit into
exercism:masterfrom
xarxziux:pangram-436

Conversation

@xarxziux

Copy link
Copy Markdown
Contributor

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

  • Change default class import Pangram to named function import { isPangram }.
  • Remove unnecessary const pangram = new Pangram(... lines.
  • Change pangram.isPangram(... calls to isPangram(....
  • Redesign example.js file to export a single named function.

Change the unit tests for the Pangram 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 `Pangram` to named function import `{ isPangram }`.
- Remove unnecessary `const pangram = new Pangram(...` lines.
- Change `pangram.isPangram(...` calls to `isPangram(...`.
- Redesign example.js file to export a single named function.
@tejasbubane
tejasbubane merged commit db2b83d into exercism:master Sep 2, 2018
@xarxziux
xarxziux deleted the pangram-436 branch September 2, 2018 20:55
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