chore: update dark image test (#41252)

This commit is contained in:
MadCcc 2023-03-15 15:02:19 +08:00 committed by GitHub
parent 7c5e4469ba
commit 12d85256a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ export default function imageTest(component: React.ReactElement) {
const element = (
<ConfigProvider theme={{ algorithm }}>
<App>
<App style={{ background: algorithm === theme.darkAlgorithm ? '#000' : '' }}>
<StyleProvider cache={cache}>{component}</StyleProvider>
</App>
</ConfigProvider>