Unverified Commit 02f97ab0 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix font unit test on Azure (#44618)

The error message differs slightly based on the Node.js version so this
special cases it.

Fixes:
https://dev.azure.com/nextjs/next.js/_build/results?buildId=45839&view=logs&j=8af7cf9c-43a1-584d-6f5c-57bad8880974&t=7ae70e63-3625-50f4-6764-5b3e72b4bd7a
parent 8b99e06e
......@@ -166,7 +166,9 @@ describe('@next/font/google loader', () => {
variableName: 'myFont',
})
).rejects.toThrowErrorMatchingInlineSnapshot(
`"Cannot read properties of undefined (reading 'subsets')"`
process.version.startsWith('v14')
? `"Cannot read property 'subsets' of undefined"`
: `"Cannot read properties of undefined (reading 'subsets')"`
)
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment