mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
5225a3d30a
no issue - adds `whats-new` service that fetches the changelog from ghost.org and exposes the latest changelog entries - trigger a background fetch of the changelog from ghost.org when first loading the admin when logged in, or after signing in - adds a "What's new" menu item next to the user popup menu - adds an indicator to the user menu button and what's new menu item if there are unseen changelog entries - closing the changelog modal will update the "last seen date", clearing both indicators
28 lines
813 B
JavaScript
28 lines
813 B
JavaScript
import hbs from 'htmlbars-inline-precompile';
|
|
import {describe, it} from 'mocha';
|
|
import {expect} from 'chai';
|
|
import {render} from '@ember/test-helpers';
|
|
import {setupRenderingTest} from 'ember-mocha';
|
|
|
|
describe.skip('Integration: Component: gh-whats-new', 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`<GhWhatsNew />`);
|
|
|
|
expect(this.element.textContent.trim()).to.equal('');
|
|
|
|
// Template block usage:
|
|
await render(hbs`
|
|
<GhWhatsNew>
|
|
template block text
|
|
</GhWhatsNew>
|
|
`);
|
|
|
|
expect(this.element.textContent.trim()).to.equal('template block text');
|
|
});
|
|
});
|