1
- describe ( 'custom-element ' , function ( ) {
1
+ describe ( 'typing-effect ' , function ( ) {
2
2
describe ( 'element creation' , function ( ) {
3
3
it ( 'creates from document.createElement' , function ( ) {
4
- const el = document . createElement ( 'custom-element ' )
5
- assert . equal ( 'CUSTOM-ELEMENT ' , el . nodeName )
4
+ const el = document . createElement ( 'typing-effect ' )
5
+ assert . equal ( 'TYPING-EFFECT ' , el . nodeName )
6
6
} )
7
7
8
8
it ( 'creates from constructor' , function ( ) {
9
- const el = new window . CustomElementElement ( )
10
- assert . equal ( 'CUSTOM-ELEMENT ' , el . nodeName )
9
+ const el = new window . TypingEffectElement ( )
10
+ assert . equal ( 'TYPING-EFFECT ' , el . nodeName )
11
11
} )
12
12
} )
13
13
14
14
describe ( 'after tree insertion' , function ( ) {
15
15
beforeEach ( function ( ) {
16
16
document . body . innerHTML = `
17
- <custom-element ></custom-element >
17
+ <typing-effect ></typing-effect >
18
18
`
19
19
} )
20
20
@@ -23,8 +23,8 @@ describe('custom-element', function () {
23
23
} )
24
24
25
25
it ( 'initiates' , function ( ) {
26
- const ce = document . querySelector ( 'custom-element ' )
27
- assert . equal ( ce . textContent , ':wave: ' )
26
+ const ce = document . querySelector ( 'typing-effect ' )
27
+ assert . equal ( ce . textContent , '' )
28
28
} )
29
29
} )
30
30
} )
0 commit comments