0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Fixed linting issues in dashboard 5 component

This commit is contained in:
Simon Backx 2022-03-22 09:58:42 +01:00
parent 829fee29da
commit 96d02a208d
2 changed files with 5 additions and 34 deletions

View file

@ -1,8 +1,6 @@
<section>
{{#if this.areMembersEnabled}}
<article class="gh-dashboard-box">
These are members related graphs
</article>
<Dashboard::MembersGraphs />
{{#if this.hasPaidTiers}}
<article class="gh-dashboard-box">
@ -31,7 +29,7 @@
</div>
<div class="for-switch">
<label class="switch">
<input type="checkbox" checked={{this.mockPaidTiers}} id="mockPaidTiers" onclick={{action (mut this.mockPaidTiers) value="target.checked"}}>
<Input @type="checkbox" @checked={{this.mockPaidTiers}} />
<span class="input-toggle-component"></span>
</label>
</div>
@ -48,7 +46,7 @@
</div>
<div class="for-switch">
<label class="switch">
<input type="checkbox" checked={{this.mockStripeEnabled}} id="stripeEnabled" onclick={{action (mut this.mockStripeEnabled) value="target.checked"}}>
<Input @type="checkbox" @checked={{this.mockStripeEnabled}} />
<span class="input-toggle-component"></span>
</label>
</div>
@ -65,7 +63,7 @@
</div>
<div class="for-switch">
<label class="switch">
<input type="checkbox" checked={{this.mockNewslettersEnabled}} id="mockNewslettersEnabled" onclick={{action (mut this.mockNewslettersEnabled) value="target.checked"}}>
<Input @type="checkbox" @checked={{this.mockNewslettersEnabled}} />
<span class="input-toggle-component"></span>
</label>
</div>
@ -82,7 +80,7 @@
</div>
<div class="for-switch">
<label class="switch">
<input type="checkbox" checked={{this.mockMembersEnabled}} id="mockMembersEnabled" onclick={{action (mut this.mockMembersEnabled) value="target.checked"}}>
<Input @type="checkbox" @checked={{this.mockMembersEnabled}} />
<span class="input-toggle-component"></span>
</label>
</div>

View file

@ -1,27 +0,0 @@
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';
describe('Integration | Component | dashboard/dashboard-v5', function() {
setupRenderingTest();
it('renders', async function() {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`<Dashboard::DashboardV5 />`);
expect(this.element.textContent.trim()).to.equal('');
// Template block usage:
await render(hbs`
<Dashboard::DashboardV5>
template block text
</Dashboard::DashboardV5>
`);
expect(this.element.textContent.trim()).to.equal('template block text');
});
});