Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Unused vars in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbo committed Oct 31, 2024
1 parent be650b4 commit fddeb7f
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 22 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ module.exports = {
files: ['**/*.spec.ts'],
extends: ['plugin:playwright/playwright-test'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'playwright/no-standalone-expect': 'off',
'playwright/no-networkidle': 'off',
'playwright/no-skipped-test': 'off',
Expand Down
4 changes: 0 additions & 4 deletions components/__tests__/AppLinks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import { describe, expect, it } from 'vitest'
import AppLinks from '@/components/AppLinks.vue'

describe('AppLinks', () => {
const profile: Profile = {
address: '0x1234567890abcdef1234567890abcdef12345678',
}

it('should render empty links', async () => {
const component = await renderSuspended(AppLinks, {
props: {
Expand Down
1 change: 0 additions & 1 deletion components/__tests__/AssetStandardBadge.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { renderSuspended } from '@nuxt/test-utils/runtime'
import { fireEvent, screen } from '@testing-library/vue'
import { beforeEach, describe, expect, it } from 'vitest'

import AssetStandardBadge from '@/components/AssetStandardBadge.vue'
Expand Down
2 changes: 1 addition & 1 deletion components/__tests__/FollowCounters.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { renderSuspended } from '@nuxt/test-utils/runtime'
import { beforeEach, describe, expect, it, vi } from 'vitest'
import { beforeEach, describe, expect, it } from 'vitest'

import FollowCounters from '../FollowCounters.vue'

Expand Down
4 changes: 0 additions & 4 deletions components/__tests__/LinkButton.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import { describe, expect, it } from 'vitest'
import LinkButton from '@/components/LinkButton.vue'

describe('LinkButton', () => {
const profile: Profile = {
address: '0x1234567890abcdef1234567890abcdef12345678',
}

it('should render empty state', async () => {
const component = await renderSuspended(LinkButton, {})

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { renderSuspended } from '@nuxt/test-utils/runtime'
import { fireEvent, screen } from '@testing-library/vue'
import { beforeEach, describe, expect, it } from 'vitest'

import AppNavbarProfileSearchGraph from '../AppNavbarProfileSearchGraph.vue'
Expand Down
2 changes: 1 addition & 1 deletion domains/grid/utils/__tests__/purifyGridConfig.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, it, vi } from 'vitest'
import { describe, expect, it } from 'vitest'

import { purifyGridConfig } from '../purifyGridConfig'

Expand Down
3 changes: 1 addition & 2 deletions pages/settings/data-provider/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { renderSuspended } from '@nuxt/test-utils/runtime'
import { createTestingPinia } from '@pinia/testing'
import { beforeEach, describe, expect, it, vi } from 'vitest'
import { beforeEach, describe, expect, it } from 'vitest'

import { useAppStore } from '@/stores/app'
import Index from '../index.vue'

describe('Settings data-provider page', () => {
Expand Down
5 changes: 0 additions & 5 deletions utils/__tests__/assetChecks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ import {
isToken,
} from '../assetChecks'

import type {
SelectProfileOption,
SelectStringOption,
} from '@lukso/web-components'

describe('isLyx', () => {
test('should return true if the asset is a LYX', async () => {
expect(
Expand Down
2 changes: 1 addition & 1 deletion utils/__tests__/unflatArray.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, expect, test } from 'vitest'
import { expect, test } from 'vitest'

import { unflatArray } from '../unflatArray'

Expand Down
1 change: 0 additions & 1 deletion utils/__tests__/validateLspMetadata.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
validateAssets,
validateAttributes,
validateDescription,
validateImage,
validateImages,
validateLinks,
validateName,
Expand Down

0 comments on commit fddeb7f

Please sign in to comment.