Skip to content

Inconsistency in tests and examples #72

@starius

Description

@starius

https://github.com/avoidwork/filesize.js/blob/f7a059f/test/filesize_test.js#L22

this.kilobit = 500;
// ...
test.equal(filesize(this.kilobit, {bits :true}), "3.91 Kb", "Should be '3.91 Kb'");

https://github.com/avoidwork/filesize.js/blob/f7a059f/README.md

filesize(500, {bits: true});          // "4 kb"

Discrepancies:

  • k / K
  • 4 / 3.91

See also #69

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions