From aaf01e66db7672a1997cfac7e73b7b4fdb295ccf Mon Sep 17 00:00:00 2001 From: Guille Date: Mon, 24 Oct 2022 15:14:19 +0300 Subject: [PATCH] chore: add cvdlName metadata (#261) --- package.json | 1 + src/vaadin-crud.html | 4 ++++ test/crud-test.html | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/package.json b/package.json index 117e8fc..b145701 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ ], "author": "Vaadin Ltd", "license": "https://raw.githubusercontent.com/vaadin/vaadin-crud/master/LICENSE", + "cvdlName": "vaadin-crud", "bugs": { "url": "https://github.com/vaadin/vaadin-crud/issues" }, diff --git a/src/vaadin-crud.html b/src/vaadin-crud.html index 775b5ea..caf6cb5 100644 --- a/src/vaadin-crud.html +++ b/src/vaadin-crud.html @@ -223,6 +223,10 @@

[[__computeEditorHeader(__isNew, i18n.newItem, i18n.editItem)] return '1.3.1'; } + static get cvdlName() { + return 'vaadin-crud'; + } + static get properties() { return { /** diff --git a/test/crud-test.html b/test/crud-test.html index 9073d32..a180b32 100644 --- a/test/crud-test.html +++ b/test/crud-test.html @@ -77,6 +77,10 @@ expect(customElements.get('vaadin-crud').version).to.be.ok; }); + it('should have a valid cvdl getter', () => { + expect(customElements.get('vaadin-crud').cvdlName).to.be.equal('vaadin-crud'); + }); + describe('declarative', () => { beforeEach(done => { crud = fixture('declarative');