2021-03-04 19:32:35 +01:00
|
|
|
|
|
|
|
jest.mock('https')
|
2021-03-09 20:28:52 +01:00
|
|
|
const { widgetify } = require('../../src/goodreads/widgetify')
|
2021-03-04 19:32:35 +01:00
|
|
|
|
|
|
|
test("goodreads-widgetify changes from lowres to hires images", async () => {
|
|
|
|
const result = await widgetify("fake")
|
|
|
|
|
|
|
|
expect(result).toMatch(/_S400_.jpg/)
|
|
|
|
expect(result).not.toMatch(/_SX/)
|
|
|
|
})
|