Skip to content

Commit

Permalink
Add method and property shorthand for blueprints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim81 authored and Jim81 committed Oct 29, 2015
1 parent 6430353 commit 00e25f7
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { module, test } from 'qunit';
let application;

module('<%= friendlyTestName %>', {
beforeEach: function() {
beforeEach() {
Ember.run(function() {
application = Ember.Application.create();
application.deferReadiness();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export function initialize(/* application */) {

export default {
name: '<%= dasherizedModuleName %>',
initialize: initialize
initialize
};
4 changes: 2 additions & 2 deletions tests/acceptance/addon-dummy-generate-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ describe('Acceptance: ember generate in-addon-dummy', function() {
"" + EOL+
"export default {" + EOL +
" name: 'foo'," + EOL +
" initialize: initialize" + EOL +
" initialize" + EOL +
"};"
});
assertFileToNotExist('app/initializers/foo.js');
Expand All @@ -368,7 +368,7 @@ describe('Acceptance: ember generate in-addon-dummy', function() {
"" + EOL+
"export default {" + EOL +
" name: 'foo/bar'," + EOL +
" initialize: initialize" + EOL +
" initialize" + EOL +
"};"
});
assertFileToNotExist('app/initializers/foo/bar.js');
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/addon-generate-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ describe('Acceptance: ember generate in-addon', function() {
"" + EOL+
"export default {" + EOL +
" name: 'foo'," + EOL +
" initialize: initialize" + EOL +
" initialize" + EOL +
"};"
});
assertFile('app/initializers/foo.js', {
Expand All @@ -522,7 +522,7 @@ describe('Acceptance: ember generate in-addon', function() {
"" + EOL+
"export default {" + EOL +
" name: 'foo/bar'," + EOL +
" initialize: initialize" + EOL +
" initialize" + EOL +
"};"
});
assertFile('app/initializers/foo/bar.js', {
Expand Down
6 changes: 3 additions & 3 deletions tests/acceptance/generate-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ describe('Acceptance: ember generate', function() {
"" + EOL+
"export default {" + EOL +
" name: 'foo'," + EOL +
" initialize: initialize" + EOL +
" initialize" + EOL +
"};"
});

Expand All @@ -594,7 +594,7 @@ describe('Acceptance: ember generate', function() {
contains: [
"import FooInitializer from '../../../initializers/foo';",
"module('Unit | Initializer | foo'",
"var application;",
"let application;",
"FooInitializer.initialize(application);"
]
});
Expand All @@ -610,7 +610,7 @@ describe('Acceptance: ember generate', function() {
"" + EOL+
"export default {" + EOL +
" name: 'foo/bar'," + EOL +
" initialize: initialize" + EOL +
" initialize" + EOL +
"};"
});

Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/in-repo-addon-generate-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ describe('Acceptance: ember generate in-repo-addon', function() {
"" + EOL+
"export default {" + EOL +
" name: 'foo'," + EOL +
" initialize: initialize" + EOL +
" initialize" + EOL +
"};"
});
assertFile('lib/my-addon/app/initializers/foo.js', {
Expand All @@ -495,7 +495,7 @@ describe('Acceptance: ember generate in-repo-addon', function() {
"" + EOL+
"export default {" + EOL +
" name: 'foo/bar'," + EOL +
" initialize: initialize" + EOL +
" initialize" + EOL +
"};"
});
assertFile('lib/my-addon/app/initializers/foo/bar.js', {
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/pods-generate-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ describe('Acceptance: ember generate pod', function() {
"" + EOL+
"export default {" + EOL +
" name: 'foo'," + EOL +
" initialize: initialize" + EOL +
" initialize" + EOL +
"};"
});
});
Expand All @@ -1167,7 +1167,7 @@ describe('Acceptance: ember generate pod', function() {
"" + EOL+
"export default {" + EOL +
" name: 'foo/bar'," + EOL +
" initialize: initialize" + EOL +
" initialize" + EOL +
"};"
});
});
Expand Down

0 comments on commit 00e25f7

Please sign in to comment.