UNPKG

@intocode-io/fireliff-cli

Version:

Command line interface for building LIFF app on Firebase

21 lines (16 loc) 470 B
import { OAuthRequest } from '../lib/oauth-request'; describe('OAuthRequest', () => { let req; beforeAll(() => { req = new OAuthRequest(); }); it('has correct endpoint', () => { expect(req.endpoint).toEqual('https://api.line.me/v2/oauth'); }); it('has axios defined correctly', () => { expect(req.axios).toBeDefined(); expect(req.axios.defaults.headers['content-type']).toEqual( 'application/x-www-form-urlencoded' ); }); });