@@ -74,7 +74,8 @@ describe('ステージ5(意図通りに非同期処理を利用できる)',
74
74
// });
75
75
76
76
77
- return expect ( promisedFriends ) . to . eventually . deep . equal ( [ 'PYXC-PJ' ] ) ;
77
+ return expect ( promisedFriends ) . to . eventually . have . length ( 1 )
78
+ . and . have . members ( [ 'PYXC-PJ' ] ) ;
78
79
} ) ;
79
80
80
81
@@ -86,9 +87,8 @@ describe('ステージ5(意図通りに非同期処理を利用できる)',
86
87
var promisedFriends = 'change me!' ;
87
88
88
89
89
- return expect ( promisedFriends ) . to . eventually . deep . equal (
90
- [ 'jisp' , 'TeJaS' ]
91
- ) ;
90
+ return expect ( promisedFriends ) . to . eventually . have . length ( 2 )
91
+ . and . have . members ( [ 'jisp' , 'TeJaS' ] ) ;
92
92
} ) ;
93
93
94
94
@@ -100,7 +100,8 @@ describe('ステージ5(意図通りに非同期処理を利用できる)',
100
100
var promisedFriends = 'change me!' ;
101
101
102
102
103
- return expect ( promisedFriends ) . to . eventually . deep . equal ( [ 'TypeScript' ] ) ;
103
+ return expect ( promisedFriends ) . to . eventually . have . length ( 1 )
104
+ . and . have . members ( [ 'TypeScript' ] ) ;
104
105
} ) ;
105
106
106
107
@@ -112,9 +113,14 @@ describe('ステージ5(意図通りに非同期処理を利用できる)',
112
113
var promisedFriends = 'change me!' ;
113
114
114
115
115
- return expect ( promisedFriends ) . to . eventually . deep . equal (
116
- [ 'Taijilang' , 'purescript' , 'Wind.js' , 'ScriptBlocks' , 'jangaroo' ]
117
- ) ;
116
+ return expect ( promisedFriends ) . to . eventually . have . length ( 5 )
117
+ . and . have . members ( [
118
+ 'Taijilang' ,
119
+ 'purescript' ,
120
+ 'Wind.js' ,
121
+ 'ScriptBlocks' ,
122
+ 'jangaroo'
123
+ ] ) ;
118
124
} ) ;
119
125
120
126
@@ -152,7 +158,8 @@ describe('ステージ5(意図通りに非同期処理を利用できる)',
152
158
// 作成した promise を mostPopularRepos 変数に代入してください。
153
159
154
160
155
- return expect ( mostPopularRepos ) . to . eventually . have . length ( 2 ) ;
161
+ return expect ( mostPopularRepos ) . to . eventually . have . length ( 2 )
162
+ . and . satisfy ( function ( name ) { return typeof name === 'string' ; } ) ;
156
163
157
164
// Github API に関する参考情報
158
165
// https://developer.github.com/v3/search
0 commit comments