diff options
Diffstat (limited to 'spec/frontend/packages_and_registries/package_registry/components/details/package_title_spec.js')
-rw-r--r-- | spec/frontend/packages_and_registries/package_registry/components/details/package_title_spec.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/frontend/packages_and_registries/package_registry/components/details/package_title_spec.js b/spec/frontend/packages_and_registries/package_registry/components/details/package_title_spec.js index fc0ca0e898f..7fe8db1c2f7 100644 --- a/spec/frontend/packages_and_registries/package_registry/components/details/package_title_spec.js +++ b/spec/frontend/packages_and_registries/package_registry/components/details/package_title_spec.js @@ -46,7 +46,6 @@ describe('PackageTitle', () => { const findTitleArea = () => wrapper.findComponent(TitleArea); const findPackageType = () => wrapper.findByTestId('package-type'); - const findPackageSize = () => wrapper.findByTestId('package-size'); const findPipelineProject = () => wrapper.findByTestId('pipeline-project'); const findPackageRef = () => wrapper.findByTestId('package-ref'); const findPackageLastDownloadedAt = () => wrapper.findByTestId('package-last-downloaded-at'); @@ -147,20 +146,6 @@ describe('PackageTitle', () => { }); }); - describe('calculates the package size', () => { - it('correctly calculates when there is only 1 file', async () => { - await createComponent({ ...packageData(), packageFiles: { nodes: [packageFiles()[0]] } }); - - expect(findPackageSize().props()).toMatchObject({ text: '400.00 KiB', icon: 'disk' }); - }); - - it('correctly calculates when there are multiple files', async () => { - await createComponent(); - - expect(findPackageSize().props('text')).toBe('800.00 KiB'); - }); - }); - describe('package tags', () => { it('displays the package-tags component when the package has tags', async () => { await createComponent(); |