Skip to content

Commit

Permalink
chore: add cvdlName metadata (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezguille authored Oct 24, 2022
1 parent 68dd70b commit aaf01e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 4 additions & 0 deletions src/vaadin-crud.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ <h3 slot="header">[[__computeEditorHeader(__isNew, i18n.newItem, i18n.editItem)]
return '1.3.1';
}

static get cvdlName() {
return 'vaadin-crud';
}

static get properties() {
return {
/**
Expand Down
4 changes: 4 additions & 0 deletions test/crud-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit aaf01e6

Please sign in to comment.