UNPKG

@uneiotech/elisa_whatsapp

Version:

Elisa WhatsApp is a library to stable a communication between channels and server.

21 lines (18 loc) 497 B
import {throwError} from './../throwError' import { IConfig } from '../types'; test("Testing: Config dont have to be empty", ()=>{ expect(()=>{ throwError(null) }).toThrow("Your config cannot be empty") }) test("Testing: Config.Apikey dont have to be empty", ()=>{ const config:IConfig = { apiKey:null } expect(()=>{ throwError(config) }).toThrow(Error) expect(()=>{ throwError(config) }).toThrow("Your apiKey cannot be empty") })