Skip to content

Commit

Permalink
style(vitest): remove imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnigos committed Dec 9, 2023
1 parent c4d39f9 commit 57a9935
Show file tree
Hide file tree
Showing 24 changed files with 0 additions and 35 deletions.
2 changes: 0 additions & 2 deletions src/common/adapters/artists.adapter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { describe, test, expect } from 'vitest'

import {
spotifyArtistMock,
artistMock,
Expand Down
2 changes: 0 additions & 2 deletions src/common/adapters/audio-features.adapter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { expect, test, describe } from 'vitest'

import { spotifyAudioFeaturesMock, audioFeaturesMock } from '../mocks'

import { adaptAudioFeatures } from './audio-features.adapter'
Expand Down
2 changes: 0 additions & 2 deletions src/common/adapters/devices.adapter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { expect, test, describe } from 'vitest'

import { spotifyDevicesMock, devicesMock } from '../mocks'

import { adaptDevices } from './devices.adapter'
Expand Down
2 changes: 0 additions & 2 deletions src/common/adapters/genres.adapter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { test, describe, expect } from 'vitest'

import { spotifyArtistsMock, topGenresMock } from '../mocks'

import { adaptGenres } from './genres.adapter'
Expand Down
2 changes: 0 additions & 2 deletions src/common/adapters/paginated.adapter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { describe, test, expect } from 'vitest'

import {
artistsMock,
spotifyArtistsMock,
Expand Down
2 changes: 0 additions & 2 deletions src/common/adapters/playback-state.adapter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { test, describe, expect } from 'vitest'

import { spotifyPlaybackStateMock, playbackStateMock } from '../mocks'

import { adaptPlaybackState } from './playback-state.adapter'
Expand Down
2 changes: 0 additions & 2 deletions src/common/adapters/profile.adapter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { test, describe, expect } from 'vitest'

import { spotifyProfileMock, profileMock } from '../mocks'

import { adaptProfile } from './profile.adapter'
Expand Down
2 changes: 0 additions & 2 deletions src/common/adapters/secret-data.adapter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { test, describe, expect } from 'vitest'

import { SpotifyToken } from '../types/spotify'

import { adaptSecretData } from './secret-data.adapter'
Expand Down
2 changes: 0 additions & 2 deletions src/common/adapters/tracks.adapter.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { test, describe, expect } from 'vitest'

import {
spotifyTracksMock,
tracksMock,
Expand Down
2 changes: 0 additions & 2 deletions src/common/utils/apply-authorization-header.util.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { test, describe, expect } from 'vitest'

import { applyAuthorizationHeader } from './apply-authorization-header.util'

describe('applyAuthorizationHeader', () => {
Expand Down
1 change: 0 additions & 1 deletion src/common/utils/catch-spotify-error.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { test, describe, expect } from 'vitest'
import { BadGatewayException, UnauthorizedException } from '@nestjs/common'

import {
Expand Down
2 changes: 0 additions & 2 deletions src/common/utils/get-most-frequent-items.util.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { test, describe, expect } from 'vitest'

import { getMostFrequentItems } from '.'

describe('GetMostFrequentItems', () => {
Expand Down
1 change: 0 additions & 1 deletion src/modules/auth/auth.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { test, describe, expect, beforeEach, vi } from 'vitest'
import { HttpStatus } from '@nestjs/common'
import { ConfigService } from '@nestjs/config'
import { Test, TestingModule } from '@nestjs/testing'
Expand Down
1 change: 0 additions & 1 deletion src/modules/auth/auth.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { URLSearchParams } from 'node:url'

import { test, describe, expect, beforeEach, vi } from 'vitest'
import { HttpService } from '@nestjs/axios'
import { ConfigService } from '@nestjs/config'
import { JwtService } from '@nestjs/jwt'
Expand Down
1 change: 0 additions & 1 deletion src/modules/auth/decorators/token.decorator.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { test, describe, expect, vi } from 'vitest'
import { ExecutionContext, UnauthorizedException } from '@nestjs/common'
import { mock } from 'vitest-mock-extended'

Expand Down
1 change: 0 additions & 1 deletion src/modules/images/images.repository.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { beforeEach, describe, expect, test, vi } from 'vitest'
import { Test } from '@nestjs/testing'
import { DataSource } from 'typeorm'

Expand Down
1 change: 0 additions & 1 deletion src/modules/player/player.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { test, describe, expect, beforeEach, vi } from 'vitest'
import { Test, TestingModule } from '@nestjs/testing'
import { firstValueFrom, of } from 'rxjs'

Expand Down
1 change: 0 additions & 1 deletion src/modules/player/player.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { test, describe, expect, beforeEach, vi } from 'vitest'
import { HttpService } from '@nestjs/axios'
import { TestingModule, Test } from '@nestjs/testing'
import { of, firstValueFrom, throwError, catchError } from 'rxjs'
Expand Down
1 change: 0 additions & 1 deletion src/modules/profiles/profiles.repository.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { beforeEach, describe, expect, test, vi } from 'vitest'
import { DataSource } from 'typeorm'
import { Test, TestingModule } from '@nestjs/testing'

Expand Down
1 change: 0 additions & 1 deletion src/modules/profiles/profiles.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { beforeEach, describe, expect, test, vi } from 'vitest'
import { Test } from '@nestjs/testing'
import { mock } from 'vitest-mock-extended'

Expand Down
1 change: 0 additions & 1 deletion src/modules/statistics/statistics.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { test, describe, expect, beforeEach, vi } from 'vitest'
import { Test, TestingModule } from '@nestjs/testing'
import { firstValueFrom, of } from 'rxjs'

Expand Down
1 change: 0 additions & 1 deletion src/modules/statistics/statistics.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { test, describe, expect, beforeEach, vi } from 'vitest'
import { HttpService } from '@nestjs/axios'
import { TestingModule, Test } from '@nestjs/testing'
import { firstValueFrom, of } from 'rxjs'
Expand Down
1 change: 0 additions & 1 deletion src/modules/users/users.controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { beforeEach, describe, expect, test, vi } from 'vitest'
import { Test } from '@nestjs/testing'

import { UsersController } from './users.controller'
Expand Down
1 change: 0 additions & 1 deletion src/modules/users/users.repository.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { beforeEach, describe, expect, test, vi } from 'vitest'
import { Test } from '@nestjs/testing'
import { DataSource } from 'typeorm'

Expand Down

0 comments on commit 57a9935

Please sign in to comment.