Skip to content

Commit

Permalink
Use more reasonable name
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Sep 14, 2022
1 parent 452b99c commit 62c4166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/evaluateTailwindFunctions.js
Expand Up @@ -220,7 +220,7 @@ export default function (context) {
parentNode.remove()

// Show a warning
log.warn('invalid-theme-fn-in-candidate', [
log.warn('invalid-theme-key-in-class', [
`The utility \`${candidate}\` contains an invalid theme value and was not generated.`,
])

Expand Down
4 changes: 2 additions & 2 deletions tests/evaluateTailwindFunctions.test.js
Expand Up @@ -1269,7 +1269,7 @@ describe('context dependent', () => {

// 2. But we get a warning in the console
expect(warn).toHaveBeenCalledTimes(1)
expect(warn.mock.calls.map((x) => x[0])).toEqual(['invalid-theme-fn-in-candidate'])
expect(warn.mock.calls.map((x) => x[0])).toEqual(['invalid-theme-key-in-class'])

// 3. The second run should work fine because it's been removed from the class cache
result = await runFull('@tailwind utilities', configPath)
Expand All @@ -1282,6 +1282,6 @@ describe('context dependent', () => {

// 4. But we've not received any further logs about it
expect(warn).toHaveBeenCalledTimes(1)
expect(warn.mock.calls.map((x) => x[0])).toEqual(['invalid-theme-fn-in-candidate'])
expect(warn.mock.calls.map((x) => x[0])).toEqual(['invalid-theme-key-in-class'])
})
})

0 comments on commit 62c4166

Please sign in to comment.