update karma specs for setting default card

This commit is contained in:
Andy Brett
2020-10-23 08:43:27 -07:00
parent 3b44c8e7e2
commit f875e406a8
3 changed files with 14 additions and 9 deletions

View File

@@ -36,6 +36,7 @@ describe 'CreditCards service', ->
it "loads a success flash", ->
CreditCards.setDefault(card2)
$httpBackend.expectGET('/api/customers.json').respond 200, []
$httpBackend.flush()
expect(RailsFlashLoader.loadFlash).toHaveBeenCalledWith({success: t('js.default_card_updated')})