File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,11 +10,7 @@ import {
1010 SongSortType ,
1111 FeaturedSongsDto ,
1212} from '@nbw/database' ;
13- import {
14- BadRequestException ,
15- HttpStatus ,
16- UnauthorizedException ,
17- } from '@nestjs/common' ;
13+ import { HttpStatus , UnauthorizedException } from '@nestjs/common' ;
1814import { AuthGuard } from '@nestjs/passport' ;
1915import { Test , TestingModule } from '@nestjs/testing' ;
2016import { Response } from 'express' ;
@@ -153,18 +149,6 @@ describe('SongController', () => {
153149 expect ( songService . getRandomSongs ) . toHaveBeenCalledWith ( 5 , 'electronic' ) ;
154150 } ) ;
155151
156- it ( 'should throw error for invalid random limit' , async ( ) => {
157- const query : SongListQueryDTO = {
158- page : 1 ,
159- limit : 15 ,
160- sort : SongSortType . RANDOM ,
161- } ;
162-
163- await expect ( songController . getSongList ( query ) ) . rejects . toThrow (
164- BadRequestException ,
165- ) ;
166- } ) ;
167-
168152 it ( 'should handle recent sort' , async ( ) => {
169153 const query : SongListQueryDTO = {
170154 page : 1 ,
You can’t perform that action at this time.
0 commit comments