From acec8d2253ba36dcfd5956448259aad88195d0e1 Mon Sep 17 00:00:00 2001 From: Chris Nelson Date: Wed, 14 Aug 2024 12:49:47 -0400 Subject: [PATCH] fix test and publish new docs --- src/LiveState.ts | 4 ++-- test/connect-element-test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LiveState.ts b/src/LiveState.ts index 31de9de..87750f8 100644 --- a/src/LiveState.ts +++ b/src/LiveState.ts @@ -61,7 +61,7 @@ export type LiveStatePatch = { * Events which begin with `livestate-` are assumed to be livestate internal events. * The following CustomEvents are supported: * - * | Error | Detail type | Description | + * | Event | Detail type | Description | * | ----------------- | ----------------------- | ------------------------------------ | * | livestate-error | {@link LiveStateError} | Occurs on channel or socket errors | * | livestate-change | {@link LiveStateChange} | on `state:change` from channel | @@ -70,7 +70,7 @@ export type LiveStatePatch = { * * Will occur on channel or socket errors. The `detail` will consist of * - * And other event name not prefixed with `livestate-` will be assumed to be a channel + * Any other event name not prefixed with `livestate-` will be assumed to be a channel * event and will result in a event being listened to on the channel, which when * received, will be dispatched as a CustomEvent of the same name with the payload * from the channel event becoming the `detail` property. diff --git a/test/connect-element-test.ts b/test/connect-element-test.ts index f4ca072..540d786 100644 --- a/test/connect-element-test.ts +++ b/test/connect-element-test.ts @@ -69,7 +69,7 @@ describe('connectElement', () => { await el.updateComplete; expect(el.bar).to.equal('wizzle'); expect(el.shadowRoot.innerHTML).to.contain('wizzle'); - expect(el.getAttribute('foo')).to.equal('wozle'); + expect(el.getAttribute('foo')).to.equal('wuzzle'); expect(el.shadowRoot.innerHTML).to.contain('wuzzle'); });