|
1 | 1 | import {assert, fixture, html} from '@open-wc/testing' |
2 | | -import '../src/custom-element' |
| 2 | +import '../src/overflow-menu-element' |
3 | 3 |
|
4 | | -describe('custom-element', function () { |
| 4 | +describe('overflow-menu', function () { |
5 | 5 | describe('element creation', function () { |
6 | 6 | it('creates from document.createElement', function () { |
7 | | - const el = document.createElement('custom-element') |
8 | | - assert.equal('CUSTOM-ELEMENT', el.nodeName) |
| 7 | + const el = document.createElement('overflow-menu') |
| 8 | + assert.equal('OVERFLOW-MENU', el.nodeName) |
9 | 9 | }) |
10 | 10 |
|
11 | 11 | it('creates from constructor', function () { |
12 | | - const el = new window.CustomElementElement() |
13 | | - assert.equal('CUSTOM-ELEMENT', el.nodeName) |
| 12 | + const el = new window.OverflowMenuElement() |
| 13 | + assert.equal('OVERFLOW-MENU', el.nodeName) |
14 | 14 | }) |
15 | 15 | }) |
16 | 16 |
|
17 | 17 | describe('after tree insertion', function () { |
18 | 18 | beforeEach(async function () { |
19 | | - await fixture(html` <custom-element></custom-element>`) |
| 19 | + await fixture(html` <overflow-menu></overflow-menu>`) |
20 | 20 | }) |
21 | 21 |
|
22 | 22 | it('initiates', function () { |
23 | | - const ce = document.querySelector('custom-element') |
| 23 | + const ce = document.querySelector('overflow-menu') |
24 | 24 | assert.equal(ce?.textContent, ':wave:') |
25 | 25 | }) |
26 | 26 | }) |
|
0 commit comments