diff --git a/tests/blueprints/tests/adapter-test.js b/tests/blueprints/tests/adapter-test.js index a96393a1e63..2a3ea3944a3 100644 --- a/tests/blueprints/tests/adapter-test.js +++ b/tests/blueprints/tests/adapter-test.js @@ -28,7 +28,7 @@ describe('Acceptance: generate and destroy adapter blueprints', function () { }); it('adapter', async function () { - let args = ['adapter', 'foo']; + const args = ['adapter', 'foo']; await emberGenerateDestroy(args, (_file) => { expect(_file('app/adapters/foo.js')) @@ -40,7 +40,7 @@ describe('Acceptance: generate and destroy adapter blueprints', function () { }); it('adapter extends application adapter if it exists', async function () { - let args = ['adapter', 'foo']; + const args = ['adapter', 'foo']; await emberGenerate(['adapter', 'application']); await emberGenerateDestroy(args, (_file) => { @@ -53,7 +53,7 @@ describe('Acceptance: generate and destroy adapter blueprints', function () { }); it('adapter with --base-class', async function () { - let args = ['adapter', 'foo', '--base-class=bar']; + const args = ['adapter', 'foo', '--base-class=bar']; await emberGenerateDestroy(args, (_file) => { expect(_file('app/adapters/foo.js')) @@ -65,13 +65,13 @@ describe('Acceptance: generate and destroy adapter blueprints', function () { }); xit('adapter throws when --base-class is same as name', function () { - let args = ['adapter', 'foo', '--base-class=foo']; + const args = ['adapter', 'foo', '--base-class=foo']; return expect(emberGenerate(args)).to.be.rejectedWith(SilentError, /Adapters cannot extend from themself/); }); it('adapter when is named "application"', function () { - let args = ['adapter', 'application']; + const args = ['adapter', 'application']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/adapters/application.js')) @@ -85,7 +85,7 @@ describe('Acceptance: generate and destroy adapter blueprints', function () { }); it('adapter-test', function () { - let args = ['adapter-test', 'foo']; + const args = ['adapter-test', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('tests/unit/adapters/foo-test.js')).to.equal(fixture(__dirname, 'adapter-test/rfc232.js')); @@ -118,7 +118,7 @@ describe('Acceptance: generate and destroy adapter blueprints', function () { }); it('adapter', function () { - let args = ['adapter', 'foo']; + const args = ['adapter', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/adapters/foo.js')) @@ -130,7 +130,7 @@ describe('Acceptance: generate and destroy adapter blueprints', function () { }); it('adapter extends application adapter if it exists', function () { - let args = ['adapter', 'foo']; + const args = ['adapter', 'foo']; return emberGenerate(['adapter', 'application']).then(() => emberGenerateDestroy(args, (_file) => { @@ -144,7 +144,7 @@ describe('Acceptance: generate and destroy adapter blueprints', function () { }); it('adapter with --base-class', function () { - let args = ['adapter', 'foo', '--base-class=bar']; + const args = ['adapter', 'foo', '--base-class=bar']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/adapters/foo.js')) @@ -156,7 +156,7 @@ describe('Acceptance: generate and destroy adapter blueprints', function () { }); it('adapter when is named "application"', function () { - let args = ['adapter', 'application']; + const args = ['adapter', 'application']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/adapters/application.js')) @@ -170,7 +170,7 @@ describe('Acceptance: generate and destroy adapter blueprints', function () { }); it('adapter-test', function () { - let args = ['adapter-test', 'foo']; + const args = ['adapter-test', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('tests/unit/adapters/foo-test.js')).to.equal(fixture(__dirname, 'adapter-test/rfc232.js')); diff --git a/tests/blueprints/tests/model-test.js b/tests/blueprints/tests/model-test.js index ee5d586d329..2e7e91ea0ef 100644 --- a/tests/blueprints/tests/model-test.js +++ b/tests/blueprints/tests/model-test.js @@ -26,7 +26,7 @@ describe('Acceptance: generate and destroy model blueprints', function () { }); it('model', function () { - let args = ['model', 'foo']; + const args = ['model', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/models/foo.js')) @@ -38,7 +38,7 @@ describe('Acceptance: generate and destroy model blueprints', function () { }); it('model with attrs', function () { - let args = [ + const args = [ 'model', 'foo', 'misc', @@ -69,7 +69,7 @@ describe('Acceptance: generate and destroy model blueprints', function () { }); it('model with belongsTo', function () { - let args = ['model', 'comment', 'post:belongs-to', 'author:belongs-to:user']; + const args = ['model', 'comment', 'post:belongs-to', 'author:belongs-to:user']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/models/comment.js')) @@ -85,7 +85,7 @@ describe('Acceptance: generate and destroy model blueprints', function () { }); it('model with hasMany', function () { - let args = ['model', 'post', 'comments:has-many', 'otherComments:has-many:comment']; + const args = ['model', 'post', 'comments:has-many', 'otherComments:has-many:comment']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/models/post.js')) @@ -99,7 +99,7 @@ describe('Acceptance: generate and destroy model blueprints', function () { }); it('model-test', function () { - let args = ['model-test', 'foo']; + const args = ['model-test', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('tests/unit/models/foo-test.js')).to.equal(fixture(__dirname, 'model-test/rfc232.js')); @@ -132,7 +132,7 @@ describe('Acceptance: generate and destroy model blueprints', function () { }); it('model', function () { - let args = ['model', 'foo']; + const args = ['model', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/models/foo.js')) @@ -144,7 +144,7 @@ describe('Acceptance: generate and destroy model blueprints', function () { }); it('model with attrs', function () { - let args = [ + const args = [ 'model', 'foo', 'misc', @@ -175,7 +175,7 @@ describe('Acceptance: generate and destroy model blueprints', function () { }); it('model with belongsTo', function () { - let args = ['model', 'comment', 'post:belongs-to', 'author:belongs-to:user']; + const args = ['model', 'comment', 'post:belongs-to', 'author:belongs-to:user']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/models/comment.js')) @@ -191,7 +191,7 @@ describe('Acceptance: generate and destroy model blueprints', function () { }); it('model with hasMany', function () { - let args = ['model', 'post', 'comments:has-many', 'otherComments:has-many:comment']; + const args = ['model', 'post', 'comments:has-many', 'otherComments:has-many:comment']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/models/post.js')) @@ -205,7 +205,7 @@ describe('Acceptance: generate and destroy model blueprints', function () { }); it('model-test', function () { - let args = ['model-test', 'foo']; + const args = ['model-test', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('tests/unit/models/foo-test.js')).to.equal(fixture(__dirname, 'model-test/rfc232.js')); diff --git a/tests/blueprints/tests/serializer-test.js b/tests/blueprints/tests/serializer-test.js index c39ec7a7944..d4021b9350d 100644 --- a/tests/blueprints/tests/serializer-test.js +++ b/tests/blueprints/tests/serializer-test.js @@ -27,7 +27,7 @@ describe('Acceptance: generate and destroy serializer blueprints', function () { }); it('serializer', function () { - let args = ['serializer', 'foo']; + const args = ['serializer', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/serializers/foo.js')) @@ -39,7 +39,7 @@ describe('Acceptance: generate and destroy serializer blueprints', function () { }); it('serializer extends application serializer if it exists', function () { - let args = ['serializer', 'foo']; + const args = ['serializer', 'foo']; return emberGenerate(['serializer', 'application']).then(() => emberGenerateDestroy(args, (_file) => { @@ -53,7 +53,7 @@ describe('Acceptance: generate and destroy serializer blueprints', function () { }); it('serializer with --base-class', function () { - let args = ['serializer', 'foo', '--base-class=bar']; + const args = ['serializer', 'foo', '--base-class=bar']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/serializers/foo.js')) @@ -65,13 +65,13 @@ describe('Acceptance: generate and destroy serializer blueprints', function () { }); xit('serializer throws when --base-class is same as name', function () { - let args = ['serializer', 'foo', '--base-class=foo']; + const args = ['serializer', 'foo', '--base-class=foo']; return expect(emberGenerate(args)).to.be.rejectedWith(SilentError, /Serializers cannot extend from themself/); }); it('serializer when is named "application"', function () { - let args = ['serializer', 'application']; + const args = ['serializer', 'application']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/serializers/application.js')) @@ -85,7 +85,7 @@ describe('Acceptance: generate and destroy serializer blueprints', function () { }); it('serializer-test', function () { - let args = ['serializer-test', 'foo']; + const args = ['serializer-test', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('tests/unit/serializers/foo-test.js')).to.equal(fixture(__dirname, 'serializer-test/rfc232.js')); @@ -121,7 +121,7 @@ describe('Acceptance: generate and destroy serializer blueprints', function () { }); it('serializer', function () { - let args = ['serializer', 'foo']; + const args = ['serializer', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/serializers/foo.js')) @@ -133,7 +133,7 @@ describe('Acceptance: generate and destroy serializer blueprints', function () { }); it('serializer extends application serializer if it exists', function () { - let args = ['serializer', 'foo']; + const args = ['serializer', 'foo']; return emberGenerate(['serializer', 'application']).then(() => emberGenerateDestroy(args, (_file) => { @@ -147,7 +147,7 @@ describe('Acceptance: generate and destroy serializer blueprints', function () { }); it('serializer with --base-class', function () { - let args = ['serializer', 'foo', '--base-class=bar']; + const args = ['serializer', 'foo', '--base-class=bar']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/serializers/foo.js')) @@ -159,13 +159,13 @@ describe('Acceptance: generate and destroy serializer blueprints', function () { }); xit('serializer throws when --base-class is same as name', function () { - let args = ['serializer', 'foo', '--base-class=foo']; + const args = ['serializer', 'foo', '--base-class=foo']; return expect(emberGenerate(args)).to.be.rejectedWith(SilentError, /Serializers cannot extend from themself/); }); it('serializer when is named "application"', function () { - let args = ['serializer', 'application']; + const args = ['serializer', 'application']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/serializers/application.js')) @@ -179,7 +179,7 @@ describe('Acceptance: generate and destroy serializer blueprints', function () { }); it('serializer-test', function () { - let args = ['serializer-test', 'foo']; + const args = ['serializer-test', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('tests/unit/serializers/foo-test.js')).to.equal(fixture(__dirname, 'serializer-test/rfc232.js')); diff --git a/tests/blueprints/tests/transform-test.js b/tests/blueprints/tests/transform-test.js index 01ed7683bff..2525c086493 100644 --- a/tests/blueprints/tests/transform-test.js +++ b/tests/blueprints/tests/transform-test.js @@ -26,7 +26,7 @@ describe('Acceptance: generate and destroy transform blueprints', function () { }); it('transform', function () { - let args = ['transform', 'foo']; + const args = ['transform', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/transforms/foo.js')) @@ -39,7 +39,7 @@ describe('Acceptance: generate and destroy transform blueprints', function () { }); it('transform-test', function () { - let args = ['transform-test', 'foo']; + const args = ['transform-test', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('tests/unit/transforms/foo-test.js')).to.equal(fixture(__dirname, 'transform-test/rfc232.js')); @@ -77,7 +77,7 @@ describe('Acceptance: generate and destroy transform blueprints', function () { }); it('transform', function () { - let args = ['transform', 'foo']; + const args = ['transform', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('app/transforms/foo.js')) @@ -90,7 +90,7 @@ describe('Acceptance: generate and destroy transform blueprints', function () { }); it('transform-test', function () { - let args = ['transform-test', 'foo']; + const args = ['transform-test', 'foo']; return emberGenerateDestroy(args, (_file) => { expect(_file('tests/unit/transforms/foo-test.js')).to.equal(fixture(__dirname, 'transform-test/rfc232.js'));