Skip to content

Commit 3a8b03a

Browse files
committed
fix: test fail
1 parent 3bd00e4 commit 3a8b03a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/integration/example.test.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ describe('Creating a Docsify site (integration tests in Jest)', function () {
2020
const docsifyInitConfig = {
2121
config: {
2222
name: 'Docsify Name',
23-
themeColor: 'red',
2423
},
2524
markdown: {
2625
coverpage: `
@@ -65,6 +64,9 @@ describe('Creating a Docsify site (integration tests in Jest)', function () {
6564
body {
6665
background: red !important;
6766
}
67+
:root {
68+
--theme-color: red;
69+
}
6870
`,
6971
styleURLs: ['/dist/themes/vue.css'],
7072
};
@@ -76,7 +78,6 @@ describe('Creating a Docsify site (integration tests in Jest)', function () {
7678

7779
// Verify config options
7880
expect(typeof window.$docsify).toBe('object');
79-
expect(window.$docsify).toHaveProperty('themeColor', 'red');
8081
expect(document.querySelector('.app-name').textContent).toContain(
8182
'Docsify Name',
8283
);

0 commit comments

Comments
 (0)