fix tests

This commit is contained in:
Henry Jameson 2024-12-30 17:32:57 +02:00
parent 7f89efa4f9
commit a4560d562d

View file

@ -216,7 +216,7 @@ export const getTextColor = function (bg, text, preserve) {
} }
const base = typeof text.a !== 'undefined' ? { a: text.a } : {} const base = typeof text.a !== 'undefined' ? { a: text.a } : {}
return Object.assign(base, result) return Object.assign(convert(result).rgb, base)
} }
/** /**