From af6d07c1d09d13bb34c8851a2caea4e5371c7e7b Mon Sep 17 00:00:00 2001 From: Richard Cartwright Date: Mon, 18 Nov 2019 16:25:03 +0000 Subject: [PATCH] fix: fix test now that initialize of an element is supported for playlist elemenets --- src/__tests__/msehttp.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/__tests__/msehttp.spec.ts b/src/__tests__/msehttp.spec.ts index e28e63b..e23dbb0 100644 --- a/src/__tests__/msehttp.spec.ts +++ b/src/__tests__/msehttp.spec.ts @@ -234,7 +234,10 @@ describe('MSE HTTP library when happy', () => { }) test('Unsuppoted element initialize', async () => { - await expect(msehttp.initialize('/this/should/break')).rejects.toThrow(/Feature not supported/) + await expect(msehttp.initialize('/this/now/works')).resolves.toMatchObject({ + response: 'Scheduled initialization and activation of /this/now/works.', + status: 200 + }) }) afterAll(async () => {