dry up classes
This commit is contained in:
5
test/fixtures/classes/accessing-super-without-having-one/actual.js
vendored
Normal file
5
test/fixtures/classes/accessing-super-without-having-one/actual.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
class Test {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
3
test/fixtures/classes/accessing-super-without-having-one/options.json
vendored
Normal file
3
test/fixtures/classes/accessing-super-without-having-one/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "cannot access super as this class has none"
|
||||
}
|
||||
4
test/fixtures/classes/defining-constructor-as-a-mutator/actual.js
vendored
Normal file
4
test/fixtures/classes/defining-constructor-as-a-mutator/actual.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
class Test {
|
||||
get constructor() {
|
||||
}
|
||||
}
|
||||
3
test/fixtures/classes/defining-constructor-as-a-mutator/options.json
vendored
Normal file
3
test/fixtures/classes/defining-constructor-as-a-mutator/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "unknown kind for constructor method"
|
||||
}
|
||||
5
test/fixtures/classes/no-accessing-super-properties/actual.js
vendored
Normal file
5
test/fixtures/classes/no-accessing-super-properties/actual.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
class Test extends Foo {
|
||||
constructor() {
|
||||
super.test.whatever;
|
||||
}
|
||||
}
|
||||
3
test/fixtures/classes/no-accessing-super-properties/options.json
vendored
Normal file
3
test/fixtures/classes/no-accessing-super-properties/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "cannot access super properties"
|
||||
}
|
||||
5
test/fixtures/classes/no-calling-super-properties/actual.js
vendored
Normal file
5
test/fixtures/classes/no-calling-super-properties/actual.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
class Test extends Foo {
|
||||
constructor() {
|
||||
super.test.whatever();
|
||||
}
|
||||
}
|
||||
3
test/fixtures/classes/no-calling-super-properties/options.json
vendored
Normal file
3
test/fixtures/classes/no-calling-super-properties/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "cannot access super properties"
|
||||
}
|
||||
Reference in New Issue
Block a user