Skip to content

Commit

Permalink
Failing test for ember-codemods#521
Browse files Browse the repository at this point in the history
  • Loading branch information
gitKrystan committed Mar 15, 2023
1 parent 38d9da2 commit ffc2037
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const Foo = Test.extend({
myAsyncMethod: async function() {
await Promise.resolve('hello');
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import classic from 'ember-classic-decorator';

class Foo extends Test {
async myAsyncMethod() {
await Promise.resolve('hello');
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const Foo = Test.extend({
async myAsyncMethod() {
await Promise.resolve('hello');
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import classic from 'ember-classic-decorator';

class Foo extends Test {
async myAsyncMethod() {
await Promise.resolve('hello');
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const Foo = Test.extend({
gen: function*() {
yield 'hello';
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import classic from 'ember-classic-decorator';

class Foo extends Test {
*gen() {
yield 'hello';
}
}

0 comments on commit ffc2037

Please sign in to comment.