File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import assert from 'assert';
6
6
7
7
8
8
class MyAwesomeComponent extends Slim {
9
- myName : string
9
+ myName : string ;
10
10
11
11
constructor ( ) {
12
12
super ( ) ;
@@ -21,7 +21,7 @@ describe('directives', () => {
21
21
Slim . element ( 'my-awesome-component' , template , MyAwesomeComponent ) ;
22
22
23
23
const div = document . createElement ( 'div' ) ;
24
- div . innerHTML = `<my-awesome-component .my- name="{{this.myName}}"></my-awesome-component>` ;
24
+ div . innerHTML = `<my-awesome-component .name="{{this.myName}}"></my-awesome-component>` ;
25
25
26
26
const model = {
27
27
myName : "SlimJS"
@@ -33,4 +33,4 @@ describe('directives', () => {
33
33
// The model myName property should be set on the div element here
34
34
assert . strictEqual ( div . firstChild . myName , model . myName ) ;
35
35
} ) ;
36
- } ) ;
36
+ } ) ;
You can’t perform that action at this time.
0 commit comments