Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@
"dependencies": {
"@adobe/css-tools": "^4.4.0",
"aria-query": "^5.0.0",
"chalk": "^3.0.0",
"css.escape": "^1.5.1",
"dom-accessibility-api": "^0.6.3",
"lodash": "^4.17.21",
"picocolors": "^1.1.1",
"redent": "^3.0.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/to-have-style.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chalk from 'chalk'
import pico from 'picocolors'
import {checkHtmlElement, parseCSS} from './utils'

function getStyleDeclaration(document, css) {
Expand Down Expand Up @@ -50,7 +50,7 @@ function expectedDiff(diffFn, expected, computedStyles) {
)
const diffOutput = diffFn(printoutStyles(expected), printoutStyles(received))
// Remove the "+ Received" annotation because this is a one-way diff
return diffOutput.replace(`${chalk.red('+ Received')}\n`, '')
return diffOutput.replace(`${pico.red('+ Received')}\n`, '')
}

export function toHaveStyle(htmlElement, css) {
Expand Down
Loading