Skip to content

Commit

Permalink
fix: test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Jul 14, 2024
1 parent 3bd00e4 commit 3a8b03a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/example.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe('Creating a Docsify site (integration tests in Jest)', function () {
const docsifyInitConfig = {
config: {
name: 'Docsify Name',
themeColor: 'red',
},
markdown: {
coverpage: `
Expand Down Expand Up @@ -65,6 +64,9 @@ describe('Creating a Docsify site (integration tests in Jest)', function () {
body {
background: red !important;
}
:root {
--theme-color: red;
}
`,
styleURLs: ['/dist/themes/vue.css'],
};
Expand All @@ -76,7 +78,6 @@ describe('Creating a Docsify site (integration tests in Jest)', function () {

// Verify config options
expect(typeof window.$docsify).toBe('object');
expect(window.$docsify).toHaveProperty('themeColor', 'red');
expect(document.querySelector('.app-name').textContent).toContain(
'Docsify Name',
);
Expand Down

0 comments on commit 3a8b03a

Please sign in to comment.