Skip to content

Commit 3fd1bb7

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

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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)