Skip to content

Fix unit tests and example solution for Prime Factors exercise - #469

Merged
tejasbubane merged 1 commit into
exercism:masterfrom
xarxziux:prime-factors-436
Sep 10, 2018
Merged

tejasbubane merged 1 commit into
exercism:masterfrom
xarxziux:prime-factors-436

Conversation

@xarxziux

@xarxziux xarxziux commented Sep 7, 2018

Copy link
Copy Markdown
Contributor

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

  • Change default class import PrimeFactors to named function import { primeFactors }.
  • Remove unneeded new PrimeFactors(); call.
  • Change primeFactors.for( calls to primeFactors( calls.
  • Redesign example.js file to export a single named function.

Change the unit tests for the Prime Factors 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 `PrimeFactors` to named function import `{ 
primeFactors }`.
- Remove unneeded `new PrimeFactors();` call.
- Change `primeFactors.for(` calls to `primeFactors(` calls.
- Redesign example.js file to export a single named function.
@xarxziux xarxziux changed the title Fix unit test and example solution for Prime Factors exercise Fix unit tests and example solution for Prime Factors exercise Sep 7, 2018
@tejasbubane
tejasbubane merged commit 5dbf43a into exercism:master Sep 10, 2018
@xarxziux
xarxziux deleted the prime-factors-436 branch September 10, 2018 21:29
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