diff --git a/README.md b/README.md index 2a803e3..7b60228 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,10 @@ - - + + + +
Define [Web Components](https://developer.mozilla.org/en-US/docs/Web/Web_Components) using functions and hooks: diff --git a/logo-dark.svg b/logo-dark.svg index c7b2e7c..a65fdf1 100644 --- a/logo-dark.svg +++ b/logo-dark.svg @@ -1,17 +1,20 @@ - + logo-dark - - - - - - - - - - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/logo-light.svg b/logo-light.svg index 45c5e51..4e3c950 100644 --- a/logo-light.svg +++ b/logo-light.svg @@ -1,17 +1,20 @@ - + logo-light - - - - - - - - - - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/misc/minicomp-designs.sketch b/misc/minicomp-designs.sketch new file mode 100644 index 0000000..5a5b9d9 Binary files /dev/null and b/misc/minicomp-designs.sketch differ diff --git a/src/test/hooks/on-property.test.ts b/src/test/hooks/on-property.test.ts index 511959f..66c3d1c 100644 --- a/src/test/hooks/on-property.test.ts +++ b/src/test/hooks/on-property.test.ts @@ -26,4 +26,18 @@ describe('onProperty', () => { expect(cb2).toHaveBeenCalledTimes(1) expect(cb2).toHaveBeenCalledWith(undefined) }) + + test('does empty calls.', () => { + const cb = jest.fn() + define('op-2', () => { + onProperty('foo', () => cb()) + + return '
Hi!
' + }) + + const el = document.createElement('op-2') + document.body.appendChild(el) + + expect(cb).toHaveBeenCalledTimes(1) + }) })