mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
e3cdc24d6b
fixes GRO-32 If we ever introduce errors in the linked source theme and linked gscan version combination, this test will catch it.
15 lines
646 B
JavaScript
15 lines
646 B
JavaScript
const assert = require('assert/strict');
|
|
const {mockSetting} = require('../../utils/e2e-framework-mock-manager');
|
|
|
|
// This test checks if the default theme passes the current gscan version
|
|
// If this test fails, check the used gscan version in Ghost
|
|
it('Default theme passes linked gscan version', async function () {
|
|
const themeService = require('../../../core/server/services/themes');
|
|
|
|
// Set active theme name
|
|
mockSetting('active_theme', 'source');
|
|
await themeService.init();
|
|
const theme = await themeService.api.getThemeErrors('source');
|
|
assert.deepEqual(theme.errors, [], 'Default theme should have no errors');
|
|
});
|