File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ describe('@Socket() decorator', () => {
10
10
11
11
it ( 'uses method name as a listener name' , ( ) => {
12
12
class App extends Vue {
13
+ render ( ) {
14
+ return '' ;
15
+ }
16
+
13
17
@Socket ( )
14
18
tweet ( ) {
15
19
}
@@ -24,6 +28,10 @@ describe('@Socket() decorator', () => {
24
28
25
29
it ( 'uses given name as a listener name' , ( ) => {
26
30
class App extends Vue {
31
+ render ( ) {
32
+ return '' ;
33
+ }
34
+
27
35
@Socket ( 'tweet' )
28
36
onTweet ( ) {
29
37
}
@@ -39,6 +47,10 @@ describe('@Socket() decorator', () => {
39
47
it ( 'doesn\'t throw an error when decorator used on the computed property and no methods defined on component' , ( ) => {
40
48
expect ( ( ) => {
41
49
class App extends Vue { // eslint-disable-line no-unused-vars
50
+ render ( ) {
51
+ return '' ;
52
+ }
53
+
42
54
@Socket ( 'tweet' )
43
55
get tweets ( ) {
44
56
}
@@ -49,6 +61,10 @@ describe('@Socket() decorator', () => {
49
61
it ( 'doesn\'t throw an error when decorator used on the computed property and some methods defined on component' , ( ) => {
50
62
expect ( ( ) => {
51
63
class App extends Vue { // eslint-disable-line no-unused-vars
64
+ render ( ) {
65
+ return '' ;
66
+ }
67
+
52
68
@Socket ( 'tweet' )
53
69
get tweets ( ) {
54
70
}
@@ -61,6 +77,10 @@ describe('@Socket() decorator', () => {
61
77
62
78
it ( 'doesn\'t define sockets on component when decorator used on the computed property' , ( ) => {
63
79
class App extends Vue {
80
+ render ( ) {
81
+ return '' ;
82
+ }
83
+
64
84
@Socket ( 'tweet' )
65
85
get tweets ( ) {
66
86
}
You can’t perform that action at this time.
0 commit comments