Skip to content

Commit

Permalink
fix: remove extra comma from deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickcate committed Jan 1, 2023
1 parent 5cc66b1 commit de825e0
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/components/UsaBannerContent/UsaBannerContent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,19 @@ describe('UsaBannerContent', () => {

cy.get('@consoleWarn').should(
'be.calledWith',
`The 'tldIcon' slot' is deprecated, use 'tld-icon' instead.`
`The 'tldIcon' slot is deprecated, use 'tld-icon' instead.`
)
cy.get('@consoleWarn').should(
'be.calledWith',
`The 'tldDescription' slot' is deprecated, use 'tld-description' instead.`
`The 'tldDescription' slot is deprecated, use 'tld-description' instead.`
)
cy.get('@consoleWarn').should(
'be.calledWith',
`The 'httpsIcon' slot' is deprecated, use 'https-icon' instead.`
`The 'httpsIcon' slot is deprecated, use 'https-icon' instead.`
)
cy.get('@consoleWarn').should(
'be.calledWith',
`The 'httpsDescription' slot' is deprecated, use 'https-description' instead.`
`The 'httpsDescription' slot is deprecated, use 'https-description' instead.`
)

cy.get('.usa-banner__guidance').should(
Expand Down
8 changes: 4 additions & 4 deletions src/components/UsaBannerContent/UsaBannerContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ import {
const slots = useSlots()
if (slots?.tldIcon) {
console.warn(`The 'tldIcon' slot' is deprecated, use 'tld-icon' instead.`)
console.warn(`The 'tldIcon' slot is deprecated, use 'tld-icon' instead.`)
}
if (slots?.tldDescription) {
console.warn(
`The 'tldDescription' slot' is deprecated, use 'tld-description' instead.`
`The 'tldDescription' slot is deprecated, use 'tld-description' instead.`
)
}
if (slots?.httpsIcon) {
console.warn(`The 'httpsIcon' slot' is deprecated, use 'https-icon' instead.`)
console.warn(`The 'httpsIcon' slot is deprecated, use 'https-icon' instead.`)
}
if (slots?.httpsDescription) {
console.warn(
`The 'httpsDescription' slot' is deprecated, use 'https-description' instead.`
`The 'httpsDescription' slot is deprecated, use 'https-description' instead.`
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/UsaHeroCallout/UsaHeroCallout.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('UsaHeroCallout', () => {

cy.get('@consoleWarn').should(
'be.calledWith',
`The 'headingAlt' slot' is deprecated, use 'heading-alt' instead.`
`The 'headingAlt' slot is deprecated, use 'heading-alt' instead.`
)
})
})
2 changes: 1 addition & 1 deletion src/components/UsaHeroCallout/UsaHeroCallout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const slots = useSlots()
if (slots?.headingAlt) {
console.warn(
`The 'headingAlt' slot' is deprecated, use 'heading-alt' instead.`
`The 'headingAlt' slot is deprecated, use 'heading-alt' instead.`
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/UsaModal/UsaModal.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ describe('UsaModal', () => {

cy.get('@consoleWarn').should(
'be.calledWith',
`The 'closeButton' slot' is deprecated, use 'close-button' instead.`
`The 'closeButton' slot is deprecated, use 'close-button' instead.`
)
})
})
2 changes: 1 addition & 1 deletion src/components/UsaModal/UsaModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const slots = useSlots()
if (slots?.closeButton) {
console.warn(
`The 'closeButton' slot' is deprecated, use 'close-button' instead.`
`The 'closeButton' slot is deprecated, use 'close-button' instead.`
)
}
Expand Down
8 changes: 4 additions & 4 deletions src/components/UsaPagination/UsaPagination.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,21 +817,21 @@ describe('UsaPagination', () => {

cy.get('@consoleWarn').should(
'be.calledWith',
`The 'previousIcon' slot' is deprecated, use 'previous-icon' instead.`
`The 'previousIcon' slot is deprecated, use 'previous-icon' instead.`
)

cy.get('@consoleWarn').should(
'be.calledWith',
`The 'previousLabel' slot' is deprecated, use 'previous-label' instead.`
`The 'previousLabel' slot is deprecated, use 'previous-label' instead.`
)

cy.get('@consoleWarn').should(
'be.calledWith',
`The 'nextIcon' slot' is deprecated, use 'next-icon' instead.`
`The 'nextIcon' slot is deprecated, use 'next-icon' instead.`
)
cy.get('@consoleWarn').should(
'be.calledWith',
`The 'nextLabel' slot' is deprecated, use 'next-label' instead.`
`The 'nextLabel' slot is deprecated, use 'next-label' instead.`
)

cy.get('span.test-next-label').should(
Expand Down
8 changes: 4 additions & 4 deletions src/components/UsaPagination/UsaPagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ const slots = useSlots()
if (slots?.previousIcon) {
console.warn(
`The 'previousIcon' slot' is deprecated, use 'previous-icon' instead.`
`The 'previousIcon' slot is deprecated, use 'previous-icon' instead.`
)
}
if (slots?.previousLabel) {
console.warn(
`The 'previousLabel' slot' is deprecated, use 'previous-label' instead.`
`The 'previousLabel' slot is deprecated, use 'previous-label' instead.`
)
}
if (slots?.nextIcon) {
console.warn(`The 'nextIcon' slot' is deprecated, use 'next-icon' instead.`)
console.warn(`The 'nextIcon' slot is deprecated, use 'next-icon' instead.`)
}
if (slots?.nextLabel) {
console.warn(`The 'nextLabel' slot' is deprecated, use 'next-label' instead.`)
console.warn(`The 'nextLabel' slot is deprecated, use 'next-label' instead.`)
}
const emit = defineEmits(['update:currentPage'])
Expand Down

0 comments on commit de825e0

Please sign in to comment.