Skip to content

Commit

Permalink
fix: tailwind tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Oct 26, 2023
1 parent 6b9b0d2 commit 11bbece
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion playground/spa/__tests__/spa.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('pxtorem - width 1120', () => {

test('should b_2 fontsize be 16px', async () => {
const fontSize = await getFontsize('#b_2')
expect(fontSize).toBe('14px')
expect(fontSize).toBe('16px')
})

test('should c_1 fontsize be half rem', async ({ rem }) => {
Expand Down
2 changes: 1 addition & 1 deletion playground/spa/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pxtorem-playground</title>
<title>pxtorem playground</title>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion playground/spa/tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
content: [`${__dirname}/src/**/*.{js,ts,jsx,tsx}`],
corePlugins: {
preflight: true,
},
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
packages:
- 'playground/*'
- 'playground/**'

0 comments on commit 11bbece

Please sign in to comment.