Bug 1622685 - Review Request: nodejs-zeropad - Zeropad your integers with optional n-length padding
Summary: Review Request: nodejs-zeropad - Zeropad your integers with optional n-length...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1622684
Blocks: 1622686
TreeView+ depends on / blocked
 
Reported: 2018-08-27 18:17 UTC by Ben Rosser
Modified: 2018-09-21 05:23 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-09-21 05:23:53 UTC
Type: ---
Embargoed:
eclipseo: fedora-review+


Attachments (Terms of Use)

Description Ben Rosser 2018-08-27 18:17:03 UTC
Spec URL: https://tc01.fedorapeople.org/nodejs/discord-irc/nodejs-zeropad.spec
SRPM URL: https://tc01.fedorapeople.org/nodejs/discord-irc/nodejs-zeropad-1.1.0-1.fc28.src.rpm

Description: Zeropad your integers with optional n-length padding.

Fedora Account System Username: tc01

Comment 1 Ben Rosser 2018-08-27 18:17:19 UTC
Add dependency on nodejs-negative-zero.

Comment 2 Robert-André Mauchin 🐧 2018-08-27 20:10:41 UTC
Tests fail:

  4 passing (9ms)
  3 failing
  1) zeropad throws when num is NaN:
     TypeError [ERR_AMBIGUOUS_ARGUMENT]: The "error/message" argument is ambiguous. The error message "zeropad requires a number or string" is identical to the message.
      at expectsError (assert.js:615:15)
      at Function.throws (assert.js:676:3)
      at Context.<anonymous> (test.js:32:16)
  2) zeropad throws when length is NaN:
     TypeError [ERR_AMBIGUOUS_ARGUMENT]: The "error/message" argument is ambiguous. The error message "zeropad requires a positive integer for length" is identical to the message.
      at expectsError (assert.js:615:15)
      at Function.throws (assert.js:676:3)
      at Context.<anonymous> (test.js:38:16)
  3) zeropad throws on negative length:
     TypeError [ERR_AMBIGUOUS_ARGUMENT]: The "error/message" argument is ambiguous. The error message "zeropad requires a positive integer for length" is identical to the message.
      at expectsError (assert.js:615:15)
      at Function.throws (assert.js:676:3)
      at Context.<anonymous> (test.js:44:16)


Node v10 has some additional assert sanity checks: if the thrown error message text equals the assert function call's descriptive message text argument, it reports this error. In order to fix this, you thus can change the message:

# Add tests to npm archive.
# https://github.com/radiovisual/zeropad/pull/1
Source1:        https://raw.githubusercontent.com/radiovisual/zeropad/3bd15b69384cc74d55ac2c4c870728b74d1ff9a9/test.js


 - License ok
 - Latest version packaged
 - Builds in mock
 - No rpmlint errors
 - Conforms to Packaging Guidelines

Package approved. Please fix the tests above before import.

Comment 3 Gwyn Ciesla 2018-08-28 21:32:05 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/nodejs-zeropad

Comment 4 Ben Rosser 2018-08-29 15:14:12 UTC
Thanks for fixing the tests on node 10!

Comment 5 Fedora Update System 2018-08-29 21:00:24 UTC
nodejs-zeropad-1.1.0-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-43c321e6ab

Comment 6 Fedora Update System 2018-08-29 23:15:28 UTC
nodejs-zeropad-1.1.0-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-43c321e6ab

Comment 7 Fedora Update System 2018-09-21 05:23:53 UTC
nodejs-zeropad-1.1.0-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.