diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 45c8894d101e0844c51012dca65038efeeceeec9..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# mocha - -#### Description -A simple, flexible, fun test framework for Node.js - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index 986349ff5ae6ec1167628a37231581a8ac565b32..1bf67687a47a1081d2229666ba42c09b6b9bd148 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,3 @@ -# mocha +Deprecated since Aug 2025 -#### 介绍 -A simple, flexible, fun test framework for Node.js - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 码云特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +- https://gitee.com/openeuler/release-management/pulls/2363 diff --git a/mocha-2.4.5.tar.gz b/mocha-2.4.5.tar.gz deleted file mode 100644 index 73a6ece15552dda45097fd996e08f481675ad9b9..0000000000000000000000000000000000000000 Binary files a/mocha-2.4.5.tar.gz and /dev/null differ diff --git a/mocha-node-dep.patch b/mocha-node-dep.patch deleted file mode 100644 index f0c16dcc5ee6f7885fa905ea9a8df6cf742fca81..0000000000000000000000000000000000000000 --- a/mocha-node-dep.patch +++ /dev/null @@ -1,19 +0,0 @@ -commit 376e50d61ff18883f0e520cff9643c7543896f6a -Author: Tom Hughes -Date: Fri Jan 1 12:29:07 2016 +0000 - - Work arround dependency generator bug - -diff --git a/package.json b/package.json -index 8172a97..3666ff5 100644 ---- a/package.json -+++ b/package.json -@@ -268,7 +268,7 @@ - "_mocha": "./bin/_mocha" - }, - "engines": { -- "node": ">= 0.8.x" -+ "node": ">= 0.8.0" - }, - "scripts": { - "test": "make test-all" diff --git a/mocha-tests.patch b/mocha-tests.patch deleted file mode 100644 index 605af1188f9635db4a9f9fc1aeab731e1f22e63f..0000000000000000000000000000000000000000 --- a/mocha-tests.patch +++ /dev/null @@ -1,49 +0,0 @@ -commit 9e9fc45c6a9c1a943edbdf0b97cedbc55527cb2b -Author: Tom Hughes -Date: Wed Dec 21 20:29:01 2016 +0000 - - Patch tests for changes in Node 6.x - - Anonymous functions can now get a name from the variable they - are assigned to, which then shows up in the hook title. - -diff --git a/test/suite.js b/test/suite.js -index 011b3fb..899d346 100644 ---- a/test/suite.js -+++ b/test/suite.js -@@ -136,7 +136,7 @@ describe('Suite', function(){ - - this.suite._beforeAll.should.have.length(1); - var beforeAllItem = this.suite._beforeAll[0]; -- beforeAllItem.title.should.equal('"before all" hook'); -+ beforeAllItem.title.should.equal('"before all" hook: fn'); - beforeAllItem.fn.should.equal(fn); - }); - -@@ -171,7 +171,7 @@ describe('Suite', function(){ - - this.suite._afterAll.should.have.length(1); - var afterAllItem = this.suite._afterAll[0]; -- afterAllItem.title.should.equal('"after all" hook'); -+ afterAllItem.title.should.equal('"after all" hook: fn'); - afterAllItem.fn.should.equal(fn); - }); - it('appends title to hook', function(){ -@@ -205,7 +205,7 @@ describe('Suite', function(){ - - this.suite._beforeEach.should.have.length(1); - var beforeEachItem = this.suite._beforeEach[0]; -- beforeEachItem.title.should.equal('"before each" hook'); -+ beforeEachItem.title.should.equal('"before each" hook: fn'); - beforeEachItem.fn.should.equal(fn); - }); - -@@ -240,7 +240,7 @@ describe('Suite', function(){ - - this.suite._afterEach.should.have.length(1); - var afterEachItem = this.suite._afterEach[0]; -- afterEachItem.title.should.equal('"after each" hook'); -+ afterEachItem.title.should.equal('"after each" hook: fn'); - afterEachItem.fn.should.equal(fn); - }); - diff --git a/mocha.spec b/mocha.spec deleted file mode 100644 index 700965cc1fcb9689ca8b286d2aa6b5efeae653fe..0000000000000000000000000000000000000000 --- a/mocha.spec +++ /dev/null @@ -1,88 +0,0 @@ -%{?nodejs_find_provides_and_requires} -%global enable_tests 1 -Name: mocha -Version: 2.4.5 -Release: 2 -Summary: A simple, flexible, fun test framework for Node.js -License: MIT -URL: https://github.com/mochajs/mocha -Source0: https://github.com/mochajs/mocha/archive/v%{version}/mocha-%{version}.tar.gz -Patch0: mocha-node-dep.patch -Patch1: mocha-tests.patch -BuildArch: noarch -ExclusiveArch: %{nodejs_arches} noarch -BuildRequires: nodejs-packaging -%if 0%{?enable_tests} -BuildRequires: npm(chalk) npm(commander) npm(debug) npm(diff) npm(escape-string-regexp) -BuildRequires: npm(glob) npm(growl) npm(jade) npm(mkdirp) npm(should) npm(supports-color) -%endif -%description -Mocha is a feature-rich JavaScript test framework running on Node.js and the -browser, making asynchronous testing simple and fun. Mocha tests run serially, -allowing for flexible and accurate reporting, while mapping uncaught -exceptions to the correct test cases. - -%prep -%autosetup -p 1 -%nodejs_fixdep commander "^2.2.0" -%nodejs_fixdep debug "^4.3.4" -%nodejs_fixdep diff "^1.0.8" -%nodejs_fixdep escape-string-regexp "^1.0.2" -%nodejs_fixdep glob "^6.0.3" -%nodejs_fixdep growl "^1.7.0" -%nodejs_fixdep jade "^1.3.1" -%nodejs_fixdep mkdirp "^0.5.0" -%nodejs_fixdep supports-color - -%build - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/mocha -cp -pr package.json index.js lib/ mocha.css mocha.js \ - %{buildroot}%{nodejs_sitelib}/mocha -rm -f %{buildroot}%{nodejs_sitelib}/mocha/lib/template.html -rm -rf %{buildroot}%{nodejs_sitelib}/mocha/lib/reporters/templates -mkdir -p %{buildroot}%{nodejs_sitelib}/mocha/bin -install -p -D -m0755 bin/mocha %{buildroot}%{nodejs_sitelib}/mocha/bin/mocha -install -p -D -m0755 bin/_mocha %{buildroot}%{nodejs_sitelib}/mocha/bin/_mocha -install -p -D -m0644 bin/options.js %{buildroot}%{nodejs_sitelib}/mocha/bin/options.js -mkdir -p %{buildroot}%{_bindir} -ln -sf %{nodejs_sitelib}/mocha/bin/mocha %{buildroot}%{_bindir}/mocha -ln -sf %{nodejs_sitelib}/diff/diff.js \ - %{buildroot}%{nodejs_sitelib}/mocha/lib/browser/diff.js -mkdir -p %{buildroot}%{_datadir}/mocha/images -cp -pr images/*.png \ - %{buildroot}%{_datadir}/mocha/images -ln -sf %{_datadir}/mocha/images \ - %{buildroot}%{nodejs_sitelib}/mocha/images -cp -pr lib/template.html \ - %{buildroot}%{_datadir}/mocha -ln -sf %{_datadir}/mocha/template.html \ - %{buildroot}%{nodejs_sitelib}/mocha/lib/template.html -cp -pr lib/reporters/templates \ - %{buildroot}%{_datadir}/mocha -ln -sf %{_datadir}/mocha/templates \ - %{buildroot}%{nodejs_sitelib}/mocha/lib/reporters/templates -%nodejs_symlink_deps -%if 0%{?enable_tests} - -%check -%nodejs_symlink_deps --check -sed -i -e 's/1000/30000/' test/color.js -sed -i -e 's/200/30000/' test/acceptance/context.js -./bin/mocha --timeout 30000 test/acceptance/*.js test/*.js -%endif - -%files -%doc README.md CHANGELOG.md CONTRIBUTING.md -%license LICENSE -%{nodejs_sitelib}/mocha -%{_bindir}/mocha -%{_datadir}/mocha - -%changelog -* Sat Jul 02 2022 chenchen - 2.4.5-2 -- Updating debug version - -* Wed Aug 19 2020 shaoqiang kang - 2.4.5-1 -- Package init diff --git a/mocha.yaml b/mocha.yaml deleted file mode 100644 index d1adb644a882e8abf666213f27961b8baf9df938..0000000000000000000000000000000000000000 --- a/mocha.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version_control: github -src_repo: mochajs/mocha -tag_prefix: "v" -seperator: "."