Skip to content

Commit

Permalink
chore(#211): fix deprecation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Mar 7, 2022
1 parent eff03e3 commit 5e789a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/entity/test/components/fields/Deprecations.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ global.console = {
}

describe('DruxtFieldComponents - Deprecations', () => {
for (const component of Object.keys(DruxtFieldComponents.default)) {
for (const component of Object.keys(DruxtFieldComponents).filter((s) => s !== 'default')) {
test(component, async () => {
DruxtFieldComponents[component].mounted.call({
$options: {
_componentTag: component,
},
})
expect(console.warn).toBeCalledWith(`[druxt-entity] The ${component} component is deprecated. See https://entity.druxtjs.org/guide/deprecations.html`)
})
})
}
})

0 comments on commit 5e789a1

Please sign in to comment.