diff --git a/sites/comteco.com.bo/comteco.com.bo.test.js b/sites/comteco.com.bo/comteco.com.bo.test.js
new file mode 100644
index 00000000..e1c02c3d
--- /dev/null
+++ b/sites/comteco.com.bo/comteco.com.bo.test.js
@@ -0,0 +1,77 @@
+// npx epg-grabber --config=sites/comteco.com.bo/comteco.com.bo.config.js --channels=sites/comteco.com.bo/comteco.com.bo_bo.channels.xml --output=.gh-pages/guides/bo/comteco.com.bo.epg.xml --days=2
+
+const { parser, url, request, logo } = require('./comteco.com.bo.config.js')
+const dayjs = require('dayjs')
+const utc = require('dayjs/plugin/utc')
+const customParseFormat = require('dayjs/plugin/customParseFormat')
+dayjs.extend(customParseFormat)
+dayjs.extend(utc)
+
+const date = dayjs.utc('2021-11-25', 'YYYY-MM-DD').startOf('d')
+const channel = {
+ site_id: 'ABYA YALA',
+ xmltv_id: 'AbyaYalaTV.bo'
+}
+const content = `
`
+
+it('can generate valid url', () => {
+ expect(url({ channel })).toBe(
+ 'https://comteco.com.bo/pages/canales-y-programacion-tv/paquete-oro/ABYA YALA'
+ )
+})
+
+it('can generate valid request method', () => {
+ expect(request.method).toBe('POST')
+})
+
+it('can generate valid request headers', () => {
+ expect(request.headers).toMatchObject({
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ })
+})
+
+it('can generate valid request data', () => {
+ const result = request.data({ date })
+ expect(result.get('_method')).toBe('POST')
+ expect(result.get('fechaini')).toBe('25/11/2021')
+ expect(result.get('fechafin')).toBe('25/11/2021')
+})
+
+it('can generate valid logo url', () => {
+ expect(logo({ content })).toBe('https://comteco.com.bo/img/upload/canales/abya-yala.png')
+})
+
+it('can parse response', () => {
+ const result = parser({ content, channel, date }).map(p => {
+ p.start = p.start.toJSON()
+ p.stop = p.stop.toJSON()
+ return p
+ })
+
+ expect(result).toMatchObject([
+ {
+ start: '2021-11-25T04:00:00.000Z',
+ stop: '2021-11-25T05:00:00.000Z',
+ title: `Abya Yala noticias - 3ra edición`
+ },
+ {
+ start: '2021-11-25T05:00:00.000Z',
+ stop: '2021-11-26T03:00:00.000Z',
+ title: `Cierre de emisión`
+ },
+ {
+ start: '2021-11-26T03:00:00.000Z',
+ stop: '2021-11-26T03:30:00.000Z',
+ title: `Referentes`
+ }
+ ])
+})
+
+it('can handle empty guide', () => {
+ const result = parser({
+ date,
+ channel,
+ content: ``
+ })
+ expect(result).toMatchObject([])
+})