Skip to content

Fix unit tests for Bob exercise - #463

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

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

Conversation

@xarxziux

Copy link
Copy Markdown
Contributor

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

  • Change default class import Bob to named function import { hey }.
  • Remove unnecessary const bob = new Bob(); line.
  • Change bob.hey(... calls to hey(....
  • Redesign example.js and bob.js files to export a single named function.

Change the unit tests for the Bob 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 `Bob` to named function import `{ hey }`.
- Remove unnecessary `const bob = new Bob();` line.
- Change `bob.hey(...` calls to `hey(...`.
- Redesign example.js and bob.js files to export a single named function.
@tejasbubane
tejasbubane merged commit b7cbb6b into exercism:master Sep 2, 2018
@xarxziux
xarxziux deleted the bob-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