UNPKG

firebase-apparatus

Version:

Lightweight implementation of firebase-tools as a Node module

12 lines (11 loc) 516 B
import { Api } from '../Api'; describe('constructor', () => { it('should throw an error if <baseURL> parameter is missing', () => { // @ts-ignore - Expected too few arguments error expect(() => new Api()).toThrow('Missing baseURL parameter'); }); it('should throw an error if <refreshToken> parameter is missing', () => { // @ts-ignore - Expected too few arguments error expect(() => new Api('https://some-url.com')).toThrow('Missing refreshToken parameter'); }); });