test written
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
const GetFlix = require('../index');
|
const GetFlix = require('../index');
|
||||||
const getflix = new GetFlix({ tmdbApiKey: 'f29e56ff85f361ff01b5c5403a343021' });
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const getflix = new GetFlix('f29e56ff85f361ff01b5c5403a343021');
|
||||||
getflix.getInfo('70143836', (res) => {
|
getflix.getInfo('70143836', (res) => {
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
console.log(res.errorMsg);
|
console.log(res.errorMsg);
|
||||||
|
|||||||
Reference in New Issue
Block a user