@@ -113,7 +113,7 @@ describe('ClassDecoratorFactory', () => {
113
113
expect ( ( ) => {
114
114
@classDecorator ( { x : 1 } )
115
115
@classDecorator ( { y : 2 } )
116
- // tslint:disable-next-line:no-unused-variable
116
+ // tslint:disable-next-line:no-unused
117
117
class MyController { }
118
118
} ) . to . throw (
119
119
/ D e c o r a t o r c a n n o t b e a p p l i e d m o r e t h a n o n c e o n c l a s s M y C o n t r o l l e r / ,
@@ -352,7 +352,7 @@ describe('PropertyDecoratorFactory', () => {
352
352
353
353
it ( 'throws if applied more than once on the same property' , ( ) => {
354
354
expect ( ( ) => {
355
- // tslint:disable-next-line:no-unused-variable
355
+ // tslint:disable-next-line:no-unused
356
356
class MyController {
357
357
@propertyDecorator ( { x : 1 } )
358
358
@propertyDecorator ( { y : 2 } )
@@ -400,7 +400,7 @@ describe('PropertyDecoratorFactory for static properties', () => {
400
400
401
401
it ( 'throws if applied more than once on the same static property' , ( ) => {
402
402
expect ( ( ) => {
403
- // tslint:disable-next-line:no-unused-variable
403
+ // tslint:disable-next-line:no-unused
404
404
class MyController {
405
405
@propertyDecorator ( { x : 1 } )
406
406
@propertyDecorator ( { y : 2 } )
@@ -448,7 +448,7 @@ describe('MethodDecoratorFactory', () => {
448
448
449
449
it ( 'throws if applied more than once on the same method' , ( ) => {
450
450
expect ( ( ) => {
451
- // tslint:disable-next-line:no-unused-variable
451
+ // tslint:disable-next-line:no-unused
452
452
class MyController {
453
453
@methodDecorator ( { x : 1 } )
454
454
@methodDecorator ( { y : 2 } )
@@ -496,7 +496,7 @@ describe('MethodDecoratorFactory for static methods', () => {
496
496
497
497
it ( 'throws if applied more than once on the same static method' , ( ) => {
498
498
expect ( ( ) => {
499
- // tslint:disable-next-line:no-unused-variable
499
+ // tslint:disable-next-line:no-unused
500
500
class MyController {
501
501
@methodDecorator ( { x : 1 } )
502
502
@methodDecorator ( { y : 2 } )
@@ -545,7 +545,7 @@ describe('ParameterDecoratorFactory', () => {
545
545
546
546
it ( 'throws if applied more than once on the same parameter' , ( ) => {
547
547
expect ( ( ) => {
548
- // tslint:disable-next-line:no-unused-variable
548
+ // tslint:disable-next-line:no-unused
549
549
class MyController {
550
550
myMethod (
551
551
@parameterDecorator ( { x : 1 } )
@@ -634,7 +634,7 @@ describe('ParameterDecoratorFactory for a static method', () => {
634
634
635
635
it ( 'throws if applied more than once on the same parameter' , ( ) => {
636
636
expect ( ( ) => {
637
- // tslint:disable-next-line:no-unused-variable
637
+ // tslint:disable-next-line:no-unused
638
638
class MyController {
639
639
static myMethod (
640
640
@parameterDecorator ( { x : 1 } )
@@ -695,7 +695,7 @@ describe('MethodParameterDecoratorFactory with invalid decorations', () => {
695
695
696
696
it ( 'reports error if the # of decorations exceeeds the # of params' , ( ) => {
697
697
expect ( ( ) => {
698
- // tslint:disable-next-line:no-unused-variable
698
+ // tslint:disable-next-line:no-unused
699
699
class MyController {
700
700
@methodParameterDecorator ( { x : 1 } ) // Causing error
701
701
@methodParameterDecorator ( { x : 2 } ) // For a
0 commit comments