Skip to content

Commit

Permalink
Fix test type (#14)
Browse files Browse the repository at this point in the history
## Describe your changes

## Issue ticket number and link

## Checklist before requesting a review
- [x] I have performed a self-review of my code
- [x] If it is a core feature, I have added thorough tests.
  • Loading branch information
lounsbrough authored Jan 19, 2024
1 parent 4fdaf85 commit 976e4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { colord } from 'colord'

const expectColorsToMatch = (color1: string, color2: string) => {
const expectColorsToMatch = (color1: string | undefined, color2: string | undefined) => {
expect(Boolean(color1), 'expected both color to be defined or undefined').to.equal(Boolean(color2))
expect(colord(color1).toHex()).to.be.equal(colord(color2).toHex())
}
Expand Down

0 comments on commit 976e4db

Please sign in to comment.