Skip to content

Commit dfc032e

Browse files
committed
fix: update tests to account for headers being undefined instead of blank strings
1 parent ec51291 commit dfc032e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/unit/test/streaming/streaming.models.CmcdModel.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ describe('CmcdModel', function () {
425425
return e.split('=')[0]
426426
})).to.not.include('dl');
427427
expect(headers[STATUS_HEADER_NAME]).to.be.undefined;
428-
expect(headers[SESSION_HEADER_NAME]).to.be.empty;
428+
expect(headers[SESSION_HEADER_NAME]).to.be.undefined;
429429
});
430430

431431
it('getHeadersParameters() should return no parameters if enabled keys is empty', function () {
@@ -540,7 +540,6 @@ describe('CmcdModel', function () {
540540
type: MEDIA_SEMGENT_REQUEST_TYPE,
541541
};
542542
headers = cmcdModel.getHeaderParameters(request);
543-
expect(headers).to.have.property(OBJECT_HEADER_NAME);
544543
expect(headers).to.have.property(REQUEST_HEADER_NAME);
545544
expect(headers).to.have.property(SESSION_HEADER_NAME);
546545

0 commit comments

Comments
 (0)