@@ -266,9 +266,11 @@ describe('Client Metadata Update Prose Tests', function () {
266
266
267
267
// Since we have our own driver metadata getting added, we really want to just
268
268
// assert that the last driver info values are appended at the end.
269
- expect ( updatedClientMetadata . driver . name . endsWith ( 'library' ) ) . to . be . true ;
270
- expect ( updatedClientMetadata . driver . version . endsWith ( '1.2' ) ) . to . be . true ;
271
- expect ( updatedClientMetadata . platform . endsWith ( 'Library Platform' ) ) . to . be . true ;
269
+ expect ( updatedClientMetadata . driver . name . endsWith ( 'framework' ) ) . to . be . true ;
270
+ expect ( updatedClientMetadata . driver . version . endsWith ( version ? version : '1.2' ) ) . to . be
271
+ . true ;
272
+ expect ( updatedClientMetadata . platform . endsWith ( platform ? platform : 'Library Platform' ) )
273
+ . to . be . true ;
272
274
// - All other subfields in the client document remain unchanged from initialClientMetadata.
273
275
// (Note os is the only one getting set in these tests)
274
276
expect ( updatedClientMetadata . os ) . to . deep . equal ( initialClientMetadata . os ) ;
@@ -334,9 +336,11 @@ describe('Client Metadata Update Prose Tests', function () {
334
336
335
337
// Since we have our own driver metadata getting added, we really want to just
336
338
// assert that the last driver info values are appended at the end.
337
- expect ( updatedClientMetadata . driver . name . endsWith ( 'library' ) ) . to . be . true ;
338
- expect ( updatedClientMetadata . driver . version . endsWith ( '1.2' ) ) . to . be . true ;
339
- expect ( updatedClientMetadata . platform . endsWith ( 'Library Platform' ) ) . to . be . true ;
339
+ expect ( updatedClientMetadata . driver . name . endsWith ( 'framework' ) ) . to . be . true ;
340
+ expect ( updatedClientMetadata . driver . version . endsWith ( version ? version : '1.2' ) ) . to . be
341
+ . true ;
342
+ expect ( updatedClientMetadata . platform . endsWith ( platform ? platform : 'Library Platform' ) )
343
+ . to . be . true ;
340
344
// - All other subfields in the client document remain unchanged from initialClientMetadata.
341
345
// (Note os is the only one getting set in these tests)
342
346
expect ( updatedClientMetadata . os ) . to . deep . equal ( initialClientMetadata . os ) ;
0 commit comments