mirror of
https://github.com/iptv-org/epg
synced 2026-05-21 00:35:01 -04:00
reinstate old canal+ for separate PR
This commit is contained in:
@@ -16,9 +16,9 @@ const channel = {
|
||||
|
||||
it('can generate valid url for today', done => {
|
||||
axios.get.mockImplementation(url => {
|
||||
if (url.includes('authenticate.json')) {
|
||||
if (url === 'https://www.canalplus.com/bi/programme-tv/') {
|
||||
return Promise.resolve({
|
||||
data: { token: 'f000c6f4ebf44647682b3a0fa66d7d99' }
|
||||
data: fs.readFileSync(path.resolve(__dirname, '__data__/programme-tv.html'))
|
||||
})
|
||||
} else {
|
||||
return Promise.resolve({ data: '' })
|
||||
@@ -38,9 +38,9 @@ it('can generate valid url for today', done => {
|
||||
|
||||
it('can generate valid url for tomorrow', done => {
|
||||
axios.get.mockImplementation(url => {
|
||||
if (url.includes('authenticate.json')) {
|
||||
if (url === 'https://www.canalplus.com/bi/programme-tv/') {
|
||||
return Promise.resolve({
|
||||
data: { token: 'f000c6f4ebf44647682b3a0fa66d7d99' }
|
||||
data: fs.readFileSync(path.resolve(__dirname, '__data__/programme-tv.html'))
|
||||
})
|
||||
} else {
|
||||
return Promise.resolve({ data: '' })
|
||||
|
||||
Reference in New Issue
Block a user