Ghost/ghost/core/test/regression/site/default-theme.test.js
Simon Backx e3cdc24d6b
Added test to test default theme against linked gscan version (#19020)
fixes GRO-32

If we ever introduce errors in the linked source theme and linked gscan
version combination, this test will catch it.
2023-11-16 12:03:00 +00:00

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');
});