@@ -25,6 +25,7 @@ describe('Renderer', function() {
25
25
{
26
26
source : {
27
27
name : 'koa' ,
28
+ quality : { } ,
28
29
version : '2.4.1' ,
29
30
description : 'Koa web app framework' ,
30
31
score : {
@@ -37,16 +38,7 @@ describe('Renderer', function() {
37
38
} ,
38
39
publisherUsername : 'jongleberry' ,
39
40
license : 'MIT' ,
40
- keywords : [
41
- 'web' ,
42
- 'app' ,
43
- 'http' ,
44
- 'application' ,
45
- 'framework' ,
46
- 'middleware' ,
47
- 'rack'
48
- ] ,
49
- deprecated : null ,
41
+ keywords : [ 'web' , 'app' , 'http' , 'application' , 'framework' , 'middleware' , 'rack' ] ,
50
42
date : '2017-11-06T14:31:37.351Z' ,
51
43
status : 'found' ,
52
44
size : 1912 ,
@@ -56,6 +48,7 @@ describe('Renderer', function() {
56
48
alternatives : [
57
49
{
58
50
name : 'express' ,
51
+ quality : { } ,
59
52
version : '4.16.2' ,
60
53
description : 'Fast, unopinionated, minimalist web framework' ,
61
54
score : {
@@ -68,18 +61,7 @@ describe('Renderer', function() {
68
61
} ,
69
62
publisherUsername : 'dougwilson' ,
70
63
license : 'MIT' ,
71
- keywords : [
72
- 'express' ,
73
- 'framework' ,
74
- 'sinatra' ,
75
- 'web' ,
76
- 'rest' ,
77
- 'restful' ,
78
- 'router' ,
79
- 'app' ,
80
- 'api'
81
- ] ,
82
- deprecated : null ,
64
+ keywords : [ 'express' , 'framework' , 'sinatra' , 'web' , 'rest' , 'restful' , 'router' , 'app' , 'api' ] ,
83
65
date : '2017-10-10T03:13:46.364Z' ,
84
66
status : 'found' ,
85
67
size : 8875 ,
@@ -88,6 +70,7 @@ describe('Renderer', function() {
88
70
} ,
89
71
{
90
72
name : 'hapi' ,
73
+ quality : { } ,
91
74
version : '17.0.2' ,
92
75
description : 'HTTP Server framework' ,
93
76
score : {
@@ -166,6 +149,7 @@ describe('Renderer', function() {
166
149
{
167
150
source : {
168
151
name : 'koa' ,
152
+ quality : { } ,
169
153
version : '2.4.1' ,
170
154
description : 'Koa web app framework' ,
171
155
score : {
@@ -178,16 +162,7 @@ describe('Renderer', function() {
178
162
} ,
179
163
publisherUsername : 'jongleberry' ,
180
164
license : 'MIT' ,
181
- keywords : [
182
- 'web' ,
183
- 'app' ,
184
- 'http' ,
185
- 'application' ,
186
- 'framework' ,
187
- 'middleware' ,
188
- 'rack'
189
- ] ,
190
- deprecated : null ,
165
+ keywords : [ 'web' , 'app' , 'http' , 'application' , 'framework' , 'middleware' , 'rack' ] ,
191
166
date : '2017-11-06T14:31:37.351Z' ,
192
167
status : 'found' ,
193
168
size : 1912 ,
@@ -197,6 +172,7 @@ describe('Renderer', function() {
197
172
alternatives : [
198
173
{
199
174
name : 'express' ,
175
+ quality : { } ,
200
176
version : '4.16.2' ,
201
177
description : 'Fast, unopinionated, minimalist web framework' ,
202
178
score : {
@@ -209,18 +185,8 @@ describe('Renderer', function() {
209
185
} ,
210
186
publisherUsername : 'dougwilson' ,
211
187
license : 'MIT' ,
212
- keywords : [
213
- 'express' ,
214
- 'framework' ,
215
- 'sinatra' ,
216
- 'web' ,
217
- 'rest' ,
218
- 'restful' ,
219
- 'router' ,
220
- 'app' ,
221
- 'api'
222
- ] ,
223
- deprecated : null ,
188
+ keywords : [ 'express' , 'framework' , 'sinatra' , 'web' , 'rest' , 'restful' , 'router' , 'app' , 'api' ] ,
189
+
224
190
date : '2017-10-10T03:13:46.364Z' ,
225
191
status : 'found' ,
226
192
size : 8875 ,
@@ -229,6 +195,7 @@ describe('Renderer', function() {
229
195
} ,
230
196
{
231
197
name : 'hapi' ,
198
+ quality : { } ,
232
199
version : '17.0.2' ,
233
200
description : 'HTTP Server framework' ,
234
201
score : {
@@ -242,7 +209,7 @@ describe('Renderer', function() {
242
209
publisherUsername : 'hueniverse' ,
243
210
license : 'BSD-3-Clause' ,
244
211
keywords : [ 'framework' , 'http' , 'api' , 'web' ] ,
245
- deprecated : null ,
212
+
246
213
date : '2017-11-21T07:25:37.190Z' ,
247
214
status : 'found' ,
248
215
size : 12589 ,
@@ -266,9 +233,9 @@ describe('Renderer', function() {
266
233
const renderer = new Renderer ( { logger } )
267
234
before ( function ( ) {
268
235
renderer . renderLink ( 'single' , [
269
- { source : { name : 'koa' , deprecated : true } } ,
270
- { source : { name : 'mongoose' , deprecated : true } } ,
271
- { source : { name : 'notDeprecated' , deprecated : false } }
236
+ { source : { name : 'koa' , quality : { deprecated : true } } } ,
237
+ { source : { name : 'mongoose' , quality : { deprecated : true } } } ,
238
+ { source : { name : 'notDeprecated' , quality : { deprecated : false } } }
272
239
] )
273
240
} )
274
241
@@ -277,12 +244,8 @@ describe('Renderer', function() {
277
244
} )
278
245
279
246
it ( 'should have the correct links for the footer' , function ( ) {
280
- renderer . queue [ 0 ] . should . eql (
281
- chalk `{blue.bold https://platform.datree.io/pkg/single-package/koa}`
282
- )
283
- renderer . queue [ 1 ] . should . eql (
284
- chalk `{blue.bold https://platform.datree.io/pkg/single-package/mongoose}`
285
- )
247
+ renderer . queue [ 0 ] . should . eql ( chalk `{blue.bold https://platform.datree.io/pkg/single-package/koa}` )
248
+ renderer . queue [ 1 ] . should . eql ( chalk `{blue.bold https://platform.datree.io/pkg/single-package/mongoose}` )
286
249
} )
287
250
} )
288
251
} )
0 commit comments