2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

Fixed svg titles appearing in tests

Refs 038600c350

- In the reference commit I update config so that svg titles are only removed in production. This causes them to show in tests which causes tests to fail. Config has now been updated to only include svg titles in development.
This commit is contained in:
Sanne de Vries 2022-08-31 16:07:11 +01:00
parent 2a198c367e
commit bef49576ba

View file

@ -8,6 +8,7 @@ const Terser = require('broccoli-terser-sourcemap');
const Funnel = require('broccoli-funnel');
const webpack = require('webpack');
const environment = EmberApp.env();
const isDevelopment = environment === 'development';
const isProduction = environment === 'production';
const isTesting = environment === 'test';
@ -206,7 +207,7 @@ module.exports = function (defaults) {
{prefixIds: true},
{cleanupIds: false},
{removeDimensions: true},
{removeTitle: isProduction},
{removeTitle: !isDevelopment},
{removeXMLNS: true},
// Transforms on groups are necessary to work around Firefox
// not supporting transform-origin on line/path elements.