|
1 | | -import {assert, fixture, html} from '@open-wc/testing' |
2 | | -import '../src/custom-element' |
| 1 | +import {assert} from '@open-wc/testing' |
| 2 | +import '../src/marquee-text-element' |
3 | 3 |
|
4 | | -describe('custom-element', function () { |
| 4 | +describe('marquee-text-element', 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('marquee-text') |
| 8 | + assert.equal('MARQUEE-TEXT', 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) |
14 | | - }) |
15 | | - }) |
16 | | - |
17 | | - describe('after tree insertion', function () { |
18 | | - beforeEach(async function () { |
19 | | - await fixture(html` <custom-element></custom-element>`) |
20 | | - }) |
21 | | - |
22 | | - it('initiates', function () { |
23 | | - const ce = document.querySelector('custom-element') |
24 | | - assert.equal(ce?.textContent, ':wave:') |
| 12 | + const el = new window.MarqueeTextElement() |
| 13 | + assert.equal('MARQUEE-TEXT', el.nodeName) |
25 | 14 | }) |
26 | 15 | }) |
27 | 16 | }) |
0 commit comments