Skip to content

Instantly share code, notes, and snippets.

@droidMakk
Created April 19, 2019 00:33
Show Gist options
  • Save droidMakk/ebc3e6163af22138d0ff9fd7933e0cd2 to your computer and use it in GitHub Desktop.
Save droidMakk/ebc3e6163af22138d0ff9fd7933e0cd2 to your computer and use it in GitHub Desktop.
import { _AccountServiceWrapper, AccountServiceWrapper } from './accountService';
describe('Get Account Information', () => {
test('should account type be lease', () => {
const spy = jest.spyOn(_AccountServiceWrapper, 'getAccountByAccountNumberAndCountry');
let accountData = _AccountServiceWrapper.getAccountByAccountNumberAndCountry();
expect(spy).toHaveBeenCalledTimes(1);
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment