diff --git a/src/validate/js/propValidators/ondestroy.js b/src/validate/js/propValidators/ondestroy.js
index 7ce61e223d..3471034178 100644
--- a/src/validate/js/propValidators/ondestroy.js
+++ b/src/validate/js/propValidators/ondestroy.js
@@ -1,9 +1,9 @@
import usesThisOrArguments from '../utils/usesThisOrArguments.js';
-export default function onteardown ( validator, prop ) {
+export default function ondestroy ( validator, prop ) {
if ( prop.value.type === 'ArrowFunctionExpression' ) {
if ( usesThisOrArguments( prop.value.body ) ) {
- validator.error( `'onteardown' should be a function expression, not an arrow function expression`, prop.start );
+ validator.error( `'ondestroy' should be a function expression, not an arrow function expression`, prop.start );
}
}
}
diff --git a/test/generator/component-ref/Widget.html b/test/generator/component-ref/Widget.html
index c5a462601a..c8cf786cc8 100644
--- a/test/generator/component-ref/Widget.html
+++ b/test/generator/component-ref/Widget.html
@@ -2,7 +2,7 @@
diff --git a/test/validator/onrender-arrow-this/errors.json b/test/validator/oncreate-arrow-this/errors.json
similarity index 57%
rename from test/validator/onrender-arrow-this/errors.json
rename to test/validator/oncreate-arrow-this/errors.json
index 5cc9b2c78d..06d020a4f8 100644
--- a/test/validator/onrender-arrow-this/errors.json
+++ b/test/validator/oncreate-arrow-this/errors.json
@@ -1,5 +1,5 @@
[{
- "message": "'onrender' should be a function expression, not an arrow function expression",
+ "message": "'oncreate' should be a function expression, not an arrow function expression",
"pos": 29,
"loc": {
"line": 3,
diff --git a/test/validator/onrender-arrow-this/input.html b/test/validator/oncreate-arrow-this/input.html
similarity index 77%
rename from test/validator/onrender-arrow-this/input.html
rename to test/validator/oncreate-arrow-this/input.html
index e4283e60ba..36d36b698d 100644
--- a/test/validator/onrender-arrow-this/input.html
+++ b/test/validator/oncreate-arrow-this/input.html
@@ -1,6 +1,6 @@
diff --git a/test/validator/ondestroy-arrow-this/errors.json b/test/validator/ondestroy-arrow-this/errors.json
new file mode 100644
index 0000000000..98e176f58f
--- /dev/null
+++ b/test/validator/ondestroy-arrow-this/errors.json
@@ -0,0 +1,8 @@
+[{
+ "message": "'ondestroy' should be a function expression, not an arrow function expression",
+ "pos": 29,
+ "loc": {
+ "line": 3,
+ "column": 2
+ }
+}]
diff --git a/test/validator/onteardown-arrow-this/input.html b/test/validator/ondestroy-arrow-this/input.html
similarity index 75%
rename from test/validator/onteardown-arrow-this/input.html
rename to test/validator/ondestroy-arrow-this/input.html
index ac2f1d7e8b..2f5df93962 100644
--- a/test/validator/onteardown-arrow-this/input.html
+++ b/test/validator/ondestroy-arrow-this/input.html
@@ -1,6 +1,6 @@
diff --git a/test/validator/onteardown-arrow-no-this/input.html b/test/validator/onteardown-arrow-no-this/input.html
deleted file mode 100644
index a742898edb..0000000000
--- a/test/validator/onteardown-arrow-no-this/input.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/test/validator/onteardown-arrow-this/errors.json b/test/validator/onteardown-arrow-this/errors.json
deleted file mode 100644
index 0596578b95..0000000000
--- a/test/validator/onteardown-arrow-this/errors.json
+++ /dev/null
@@ -1,8 +0,0 @@
-[{
- "message": "'onteardown' should be a function expression, not an arrow function expression",
- "pos": 29,
- "loc": {
- "line": 3,
- "column": 2
- }
-}]