Skip to content

Commit 7c2d5bf

Browse files
committed
Update boilerplate tests
1 parent 67dab0f commit 7c2d5bf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
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

Comments
 (0)