Skip to content

Commit

Permalink
pnpm lint --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gitKrystan committed Oct 26, 2023
1 parent f804dd2 commit 3f98e05
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 37 deletions.
22 changes: 11 additions & 11 deletions tests/blueprints/tests/adapter-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand All @@ -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) => {
Expand All @@ -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'))
Expand All @@ -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'))
Expand All @@ -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'));
Expand Down Expand Up @@ -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'))
Expand All @@ -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) => {
Expand All @@ -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'))
Expand All @@ -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'))
Expand All @@ -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'));
Expand Down
20 changes: 10 additions & 10 deletions tests/blueprints/tests/model-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand All @@ -38,7 +38,7 @@ describe('Acceptance: generate and destroy model blueprints', function () {
});

it('model with attrs', function () {
let args = [
const args = [
'model',
'foo',
'misc',
Expand Down Expand Up @@ -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'))
Expand All @@ -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'))
Expand All @@ -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'));
Expand Down Expand Up @@ -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'))
Expand All @@ -144,7 +144,7 @@ describe('Acceptance: generate and destroy model blueprints', function () {
});

it('model with attrs', function () {
let args = [
const args = [
'model',
'foo',
'misc',
Expand Down Expand Up @@ -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'))
Expand All @@ -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'))
Expand All @@ -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'));
Expand Down
24 changes: 12 additions & 12 deletions tests/blueprints/tests/serializer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand All @@ -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) => {
Expand All @@ -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'))
Expand All @@ -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'))
Expand All @@ -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'));
Expand Down Expand Up @@ -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'))
Expand All @@ -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) => {
Expand All @@ -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'))
Expand All @@ -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'))
Expand All @@ -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'));
Expand Down
8 changes: 4 additions & 4 deletions tests/blueprints/tests/transform-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand All @@ -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'));
Expand Down Expand Up @@ -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'))
Expand All @@ -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'));
Expand Down

0 comments on commit 3f98e05

Please sign in to comment.