commit
565e67dba9
BIN
nodejs-assert-plus-1.0.0.tar.gz
Normal file
BIN
nodejs-assert-plus-1.0.0.tar.gz
Normal file
Binary file not shown.
36
nodejs-assert-plus.spec
Normal file
36
nodejs-assert-plus.spec
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
Name: nodejs-assert-plus
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Extra assertions on top of node's assert module
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/mcavage/node-assert-plus
|
||||||
|
Source0: https://github.com/mcavage/node-assert-plus/archive/v%{version}.tar.gz#/nodejs-assert-plus-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging npm(tape)
|
||||||
|
%description
|
||||||
|
This library is a super small wrapper over node's assert module that has two
|
||||||
|
things: (1) the ability to disable assertions with the environment variable
|
||||||
|
NODE_NDEBUG, and (2) some API wrappers for argument testing.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n node-assert-plus-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/assert-plus
|
||||||
|
cp -pr package.json assert.js %{buildroot}%{nodejs_sitelib}/assert-plus
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
tape tests/*.js
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{nodejs_sitelib}/assert-plus
|
||||||
|
%doc README.md
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 17 2020 Shaoqiang Kang <kangshaoqiang1@huawei.com> - 1.0.0-1
|
||||||
|
- Package init
|
||||||
4
nodejs-assert-plus.yaml
Normal file
4
nodejs-assert-plus.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: mcavage/node-assert-plus
|
||||||
|
tag_prefix: "v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user