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
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 3fd1bb7

Browse files
author
Kuniwak
committed
Check elements type
1 parent 53634f2 commit 3fd1bb7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎public/stage5/tests.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ describe('ステージ5(意図通りに非同期処理を利用できる)',
159159

160160

161161
return expect(mostPopularRepos).to.eventually.have.length(2)
162-
.and.satisfy(function(name) { return typeof name === 'string'; });
162+
.and.satisfy(function(names) {
163+
return typeof names[0] === 'string' &&
164+
typeof names[1] === 'string';
165+
});
163166

164167
// Github API に関する参考情報
165168
// https://developer.github.com/v3/search

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /