Skip to content

Discrepancy between docs and test case #1394

Closed

Description

@joshuaswickirl

The comment on purchaseInventoryIfAvailable in fruit-picker.js says arg should be bool but a test case expects passing an object to return "PURCHASE" as if this is an expected type.

* @param {boolean} isAvailable

expect(purchaseInventoryIfAvailable(null, { quantityAvailable: 4 })).toBe(

The test case should be replaced by a bool or the comment should be updated to show different types are expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't workingx:action/fixFix an issuex:knowledge/noneNo existing Exercism knowledge requiredx:size/smallSmall amount of workx:status/claimedSomeone is working on this issuex:type/contentWork on content (e.g. exercises, concepts)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions