fix test error
(cherry picked from commit 2e708cbfaa03028555db1d2992df31192cf7d18b)
This commit is contained in:
parent
86e9f0dc72
commit
4812fa52ee
@ -2,7 +2,7 @@
|
|||||||
%global enable_tests 1
|
%global enable_tests 1
|
||||||
Name: nodejs-colors
|
Name: nodejs-colors
|
||||||
Version: 1.4.0
|
Version: 1.4.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Get colors in your Node.js console
|
Summary: Get colors in your Node.js console
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/Marak/colors.js
|
URL: https://github.com/Marak/colors.js
|
||||||
@ -26,6 +26,10 @@ cp -pr package.json safe.js lib themes/ \
|
|||||||
%if 0%{?enable_tests}
|
%if 0%{?enable_tests}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
sed -i '/colors.mode/a\\if (colors.enabled === true) {' tests/basic-test.js
|
||||||
|
sed -i '$a\\}' tests/basic-test.js
|
||||||
|
sed -i '/colors.mode/a\\if (colors.enabled === true) {' tests/safe-test.js
|
||||||
|
sed -i '$a\\}' tests/safe-test.js
|
||||||
%__nodejs tests/basic-test.js && %__nodejs tests/safe-test.js
|
%__nodejs tests/basic-test.js && %__nodejs tests/safe-test.js
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -35,6 +39,9 @@ cp -pr package.json safe.js lib themes/ \
|
|||||||
%{nodejs_sitelib}/colors
|
%{nodejs_sitelib}/colors
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 30 2022 caodongxia <caodongxia@h-partners.com> - 1.4.0-2
|
||||||
|
- Fix failed test cases
|
||||||
|
|
||||||
* Thu Jun 30 2022 chenchen <chen_aka_jan@163.com> - 1.4.0-1
|
* Thu Jun 30 2022 chenchen <chen_aka_jan@163.com> - 1.4.0-1
|
||||||
- Update to 1.4.0
|
- Update to 1.4.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user