Skip to content

Commit 7703b7c

Browse files
committed
switch to an id, fix test
1 parent f5f9f18 commit 7703b7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/app.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('App Initialization', () => {
4545

4646
it('should display an error when no templates are input', () => {
4747
expect(errorSpy).toBeCalled()
48-
expect(document.querySelector('.error')).not.toBe(null)
48+
expect(document.querySelector('#error-card')).not.toBe(null)
4949
})
5050
})
5151

src/templates/error.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
export default function (error) {
55
return (`
6-
<div class="card text-center">
6+
<div id="error-card" class="card text-center">
77
<div class="card-body">
88
<div class="alert alert-danger" role="alert">
99
${error}

0 commit comments

Comments
 (0)