Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colepeters committed Jul 16, 2024
1 parent 404c3fc commit eb81deb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions v7/test/properties/color-scales.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import config from '../fixtures/styleguide.mjs'

const expectedMinified = `
:root {
--red100: hsl(0, 100%, 90%);
--red200: hsl(0, 100%, 80%);
--red300: hsl(0, 100%, 70%);
--red400: hsl(0, 100%, 60%);
--red500: hsl(0, 100%, 50%);
--red600: hsl(0, 100%, 40%);
--red700: hsl(0, 100%, 30%);
--red800: hsl(0, 100%, 20%);
--red900: hsl(0, 100%, 10%);
--gray100: hsl(0, 0%, 90%);
--gray200: hsl(0, 0%, 80%);
--gray300: hsl(0, 0%, 70%);
--gray400: hsl(0, 0%, 60%);
--gray500: hsl(0, 0%, 50.2%);
--gray600: hsl(0, 0%, 40%);
--gray700: hsl(0, 0%, 30%);
--gray800: hsl(0, 0%, 20%);
--gray900: hsl(0, 0%, 10%);
}`.replaceAll(' ', '').replaceAll('\n', '')

test('config.color.scales', t => {
Expand Down
2 changes: 1 addition & 1 deletion v7/test/properties/color-spots.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test('config.color.spots', t => {
colorSpots({ config })
.replaceAll(' ', '')
.replaceAll('\n', '')
.includes(':root{--rebeccaPurple:#663399;}'),
.includes(':root{--magenta:#ff0095;--p3magenta:color(display-p3100.58);}'), // trimmed spaces in color() aren't valid CSS but this works for testing purposes
'produces the expected spot colors'
)
t.end()
Expand Down

0 comments on commit eb81deb

Please sign in to comment.