1- describe ( 'custom-element ' , function ( ) {
1+ describe ( 'typing-effect ' , function ( ) {
22 describe ( 'element creation' , function ( ) {
33 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 )
66 } )
77
88 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 )
1111 } )
1212 } )
1313
1414 describe ( 'after tree insertion' , function ( ) {
1515 beforeEach ( function ( ) {
1616 document . body . innerHTML = `
17- <custom-element ></custom-element >
17+ <typing-effect ></typing-effect >
1818 `
1919 } )
2020
@@ -23,8 +23,8 @@ describe('custom-element', function () {
2323 } )
2424
2525 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 , '' )
2828 } )
2929 } )
3030} )
0 commit comments