Fixed lint

This commit is contained in:
Rishabh 2021-11-19 19:41:02 +05:30
parent 3b49732cbb
commit 0f460a646b
8 changed files with 62 additions and 44 deletions

View File

@ -1,4 +1,10 @@
import Component from '@glimmer/component';
import {inject as service} from '@ember/service';
export default class KoenigCardAudioComponent extends Component {
@service config;
@service feature;
@service store;
@service membersUtils;
@service ui;
}

View File

@ -1,4 +1,10 @@
import Component from '@glimmer/component';
import {inject as service} from '@ember/service';
export default class KoenigCardFileComponent extends Component {
@service config;
@service feature;
@service store;
@service membersUtils;
@service ui;
}

View File

@ -1,4 +1,10 @@
import Component from '@glimmer/component';
import {inject as service} from '@ember/service';
export default class KoenigCardVideoComponent extends Component {
@service config;
@service feature;
@service store;
@service membersUtils;
@service ui;
}

View File

@ -1 +1 @@
export { default } from 'koenig-editor/components/koenig-card-audio';
export {default} from 'koenig-editor/components/koenig-card-audio';

View File

@ -1 +1 @@
export { default } from 'koenig-editor/components/koenig-card-video';
export {default} from 'koenig-editor/components/koenig-card-video';

View File

@ -1,27 +1,27 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupRenderingTest } from 'ember-mocha';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import {describe, it} from 'mocha';
import {expect} from 'chai';
import {hbs} from 'ember-cli-htmlbars';
import {render} from '@ember/test-helpers';
import {setupRenderingTest} from 'ember-mocha';
describe('Integration | Component | koenig-card-audio', function() {
setupRenderingTest();
describe('Integration | Component | koenig-card-audio', function () {
setupRenderingTest();
it('renders', async function() {
it('renders', async function () {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`<KoenigCardAudio />`);
await render(hbs`<KoenigCardAudio />`);
expect(this.element.textContent.trim()).to.equal('');
expect(this.element.textContent.trim()).to.equal('');
// Template block usage:
await render(hbs`
// Template block usage:
await render(hbs`
<KoenigCardAudio>
template block text
</KoenigCardAudio>
`);
expect(this.element.textContent.trim()).to.equal('template block text');
});
expect(this.element.textContent.trim()).to.equal('template block text');
});
});

View File

@ -1,27 +1,27 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupRenderingTest } from 'ember-mocha';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import {describe, it} from 'mocha';
import {expect} from 'chai';
import {hbs} from 'ember-cli-htmlbars';
import {render} from '@ember/test-helpers';
import {setupRenderingTest} from 'ember-mocha';
describe('Integration | Component | koenig-card-file', function() {
setupRenderingTest();
describe('Integration | Component | koenig-card-file', function () {
setupRenderingTest();
it('renders', async function() {
it('renders', async function () {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`<KoenigCardFile />`);
await render(hbs`<KoenigCardFile />`);
expect(this.element.textContent.trim()).to.equal('');
expect(this.element.textContent.trim()).to.equal('');
// Template block usage:
await render(hbs`
// Template block usage:
await render(hbs`
<KoenigCardFile>
template block text
</KoenigCardFile>
`);
expect(this.element.textContent.trim()).to.equal('template block text');
});
expect(this.element.textContent.trim()).to.equal('template block text');
});
});

View File

@ -1,27 +1,27 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupRenderingTest } from 'ember-mocha';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import {describe, it} from 'mocha';
import {expect} from 'chai';
import {hbs} from 'ember-cli-htmlbars';
import {render} from '@ember/test-helpers';
import {setupRenderingTest} from 'ember-mocha';
describe('Integration | Component | koenig-card-video', function() {
setupRenderingTest();
describe('Integration | Component | koenig-card-video', function () {
setupRenderingTest();
it('renders', async function() {
it('renders', async function () {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`<KoenigCardVideo />`);
await render(hbs`<KoenigCardVideo />`);
expect(this.element.textContent.trim()).to.equal('');
expect(this.element.textContent.trim()).to.equal('');
// Template block usage:
await render(hbs`
// Template block usage:
await render(hbs`
<KoenigCardVideo>
template block text
</KoenigCardVideo>
`);
expect(this.element.textContent.trim()).to.equal('template block text');
});
expect(this.element.textContent.trim()).to.equal('template block text');
});
});