mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Cleanup commented out tests
This commit is contained in:
parent
2730486ba5
commit
d1671f0ddc
@ -236,7 +236,6 @@ describe('search', () => {
|
|||||||
[`${t} - ${a} 2022 mp3`],
|
[`${t} - ${a} 2022 mp3`],
|
||||||
[`01 ${t}`],
|
[`01 ${t}`],
|
||||||
[`2022_${t}_HQ`],
|
[`2022_${t}_HQ`],
|
||||||
// [`${a} - ${t}`],
|
|
||||||
])(`returns result ('%s', '${a}') (1 fuzzy search)` , async (searchTitle) => {
|
])(`returns result ('%s', '${a}') (1 fuzzy search)` , async (searchTitle) => {
|
||||||
expect(await bookFinder.search('', searchTitle, a)).toEqual(r)
|
expect(await bookFinder.search('', searchTitle, a)).toEqual(r)
|
||||||
expect(bookFinder.runSearch).toHaveBeenCalledTimes(2)
|
expect(bookFinder.runSearch).toHaveBeenCalledTimes(2)
|
||||||
@ -246,7 +245,6 @@ describe('search', () => {
|
|||||||
it.each([
|
it.each([
|
||||||
[`s-01 - ${t} (narrator) 64kbps 10:00:00`],
|
[`s-01 - ${t} (narrator) 64kbps 10:00:00`],
|
||||||
[`${a} - series 01 - ${t}`],
|
[`${a} - series 01 - ${t}`],
|
||||||
// [`${a} - ${t}`],
|
|
||||||
])(`returns result ('%s', '${a}') (2 fuzzy searches)` , async (searchTitle) => {
|
])(`returns result ('%s', '${a}') (2 fuzzy searches)` , async (searchTitle) => {
|
||||||
expect(await bookFinder.search('', searchTitle, a)).toEqual(r)
|
expect(await bookFinder.search('', searchTitle, a)).toEqual(r)
|
||||||
expect(bookFinder.runSearch).toHaveBeenCalledTimes(3)
|
expect(bookFinder.runSearch).toHaveBeenCalledTimes(3)
|
||||||
@ -305,13 +303,7 @@ describe('search', () => {
|
|||||||
expect(await bookFinder.search('', searchTitle, u)).toEqual(r)
|
expect(await bookFinder.search('', searchTitle, u)).toEqual(r)
|
||||||
expect(bookFinder.runSearch).toHaveBeenCalledTimes(2)
|
expect(bookFinder.runSearch).toHaveBeenCalledTimes(2)
|
||||||
})
|
})
|
||||||
/*
|
|
||||||
it.each([
|
|
||||||
])(`returns result ('%s', '') (2 fuzzy searches)` , async (searchTitle) => {
|
|
||||||
expect(await bookFinder.search('', searchTitle, u)).toEqual(r)
|
|
||||||
expect(bookFinder.runSearch).toHaveBeenCalledTimes(3)
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
it.each([
|
it.each([
|
||||||
[`${t}`],
|
[`${t}`],
|
||||||
])(`returns result ('%s', '') (no fuzzy search)` , async (searchTitle) => {
|
])(`returns result ('%s', '') (no fuzzy search)` , async (searchTitle) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user