mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-23 02:55:13 -04:00
2499ecadcc
[web] Begin to migrate personal subscription dash commons to React GitOrigin-RevId: 43c096bd72199c8c0a7b40c8fd84a0a12c108217
23 lines
733 B
TypeScript
23 lines
733 B
TypeScript
import { expect } from 'chai'
|
|
import { render, screen } from '@testing-library/react'
|
|
import SubscriptionDashboard from '../../../../../../frontend/js/features/subscription/components/dashboard/subscription-dashboard'
|
|
|
|
describe('<SubscriptionDashboard />', function () {
|
|
beforeEach(function () {
|
|
window.metaAttributesCache = new Map()
|
|
})
|
|
|
|
afterEach(function () {
|
|
window.metaAttributesCache = new Map()
|
|
})
|
|
|
|
describe('Free Plan', function () {
|
|
it('does not render the "Get the most out of your" subscription text', function () {
|
|
render(<SubscriptionDashboard />)
|
|
const text = screen.queryByText('Get the most out of your', {
|
|
exact: false,
|
|
})
|
|
expect(text).to.be.null
|
|
})
|
|
})
|
|
})
|