Skip to content

Commit

Permalink
fix: fix test now that initialize of an element is supported for play…
Browse files Browse the repository at this point in the history
…list elemenets
  • Loading branch information
sparkpunkd committed Nov 18, 2019
1 parent a6d4a47 commit af6d07c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/__tests__/msehttp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit af6d07c

Please sign in to comment.