diff --git a/autobind-decorator/autobind-decorator-tests.ts b/autobind-decorator/autobind-decorator-tests.ts index 693e070183..e428604802 100644 --- a/autobind-decorator/autobind-decorator-tests.ts +++ b/autobind-decorator/autobind-decorator-tests.ts @@ -32,12 +32,12 @@ class Component { this.someMember = someMember; } - public somMethod(): void { + public someMethod(): void { console.error(this.someMember); } } const component: Component = new Component('React vs Angular2'); -const { somMethod } = component; +const { someMethod } = component; component.someMethod(); // errors 'React vs Angular2' -somMethod(); // errors 'React vs Angular2' +someMethod(); // errors 'React vs Angular2'