commit
38b8e23b04
BIN
merge-descriptors-1.0.1.tar.gz
Normal file
BIN
merge-descriptors-1.0.1.tar.gz
Normal file
Binary file not shown.
39
nodejs-merge-descriptors-node10.patch
Normal file
39
nodejs-merge-descriptors-node10.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From 4512270990987bb387ac64cd9bf323d1c5f7f361 Mon Sep 17 00:00:00 2001
|
||||
From: Douglas Christopher Wilson <doug@somethingdoug.com>
|
||||
Date: Sun, 1 Jul 2018 23:50:02 -0400
|
||||
Subject: [PATCH] tests: fix throw asserts
|
||||
|
||||
---
|
||||
test/merge.js | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/test/merge.js b/test/merge.js
|
||||
index 80cbdc8..3a1d677 100644
|
||||
--- a/test/merge.js
|
||||
+++ b/test/merge.js
|
||||
@@ -16,21 +16,21 @@ describe('merge(dest, src)', function () {
|
||||
describe('arguments', function () {
|
||||
describe('dest', function () {
|
||||
it('should be required', function () {
|
||||
- assert.throws(merge.bind(null, undefined), 'argument dest is required')
|
||||
+ assert.throws(merge.bind(null, undefined), /argument dest is required/)
|
||||
})
|
||||
|
||||
it('should reject null', function () {
|
||||
- assert.throws(merge.bind(null, null), 'argument dest is required')
|
||||
+ assert.throws(merge.bind(null, null), /argument dest is required/)
|
||||
})
|
||||
})
|
||||
|
||||
describe('src', function () {
|
||||
it('should be required', function () {
|
||||
- assert.throws(merge.bind(null, {}, undefined), 'argument src is required')
|
||||
+ assert.throws(merge.bind(null, {}, undefined), /argument src is required/)
|
||||
})
|
||||
|
||||
it('should reject null', function () {
|
||||
- assert.throws(merge.bind(null, {}, null), 'argument dest is required')
|
||||
+ assert.throws(merge.bind(null, {}, null), /argument src is required/)
|
||||
})
|
||||
})
|
||||
})
|
||||
39
nodejs-merge-descriptors.spec
Normal file
39
nodejs-merge-descriptors.spec
Normal file
@ -0,0 +1,39 @@
|
||||
%{?nodejs_find_provides_and_requires}
|
||||
Name: nodejs-merge-descriptors
|
||||
Version: 1.0.1
|
||||
Release: 1
|
||||
Summary: A Node.js module to merge objects using descriptors
|
||||
License: MIT
|
||||
URL: https://github.com/component/merge-descriptors
|
||||
Source0: https://github.com/component/merge-descriptors/archive/%{version}/merge-descriptors-%{version}.tar.gz
|
||||
Patch0: nodejs-merge-descriptors-node10.patch
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
BuildRequires: npm(mocha)
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -p 1 -n merge-descriptors-%{version}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/merge-descriptors
|
||||
cp -pr package.json index.js \
|
||||
%{buildroot}%{nodejs_sitelib}/merge-descriptors
|
||||
%nodejs_symlink_deps
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{nodejs_sitelib}/mocha/bin/mocha --reporter spec --bail --check-leaks test/
|
||||
|
||||
%files
|
||||
%doc README.md HISTORY.md
|
||||
%license LICENSE
|
||||
%{nodejs_sitelib}/merge-descriptors
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 yaokai <yaokai13@huawei.com> - 1.0.1-1
|
||||
- Package init
|
||||
4
nodejs-merge-descriptors.yaml
Normal file
4
nodejs-merge-descriptors.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: component/merge-descriptors
|
||||
tag_pattern: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user