Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1cec0d5

Browse files
authored
Add new category concurrency (#42)
1 parent37cb2ea commit1cec0d5

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

‎docs/commands.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ Navigate the quations.
141141
*`algorithms`
142142
*`database`
143143
*`shell`
144+
*`concurrency`
144145
* by company (require plugin)
145146
* by topic (require plugin)
146147
*`-s` to show statistic counters of the output list.

‎lib/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const DEFAULT_CONFIG = {
1010
categories:[
1111
'algorithms',
1212
'database',
13-
'shell'
13+
'shell',
14+
'concurrency'
1415
],
1516
langs:[
1617
'bash',

‎test/plugins/test_leetcode.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,13 @@ describe('plugin:leetcode', function() {
121121
.get('/api/problems/shell/')
122122
.replyWithFile(200,'./test/mock/problems.json.20160911');
123123

124+
nock('https://leetcode.com')
125+
.get('/api/problems/concurrency/')
126+
.replyWithFile(200,'./test/mock/problems.json.20160911');
127+
124128
plugin.getProblems(function(e,problems){
125129
assert.equal(e,null);
126-
assert.equal(problems.length,377*3);
130+
assert.equal(problems.length,377*4);
127131
done();
128132
});
129133
});
@@ -141,6 +145,10 @@ describe('plugin:leetcode', function() {
141145
.get('/api/problems/shell/')
142146
.replyWithFile(200,'./test/mock/problems.json.20160911');
143147

148+
nock('https://leetcode.com')
149+
.get('/api/problems/concurrency/')
150+
.replyWithFile(200,'./test/mock/problems.json.20160911');
151+
144152
plugin.getProblems(function(e,problems){
145153
assert.equal(e.message,'unknown error');
146154
done();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp