Commit 149294c3 authored by Ben Hayward's avatar Ben Hayward

added test

1 merge request!460WIP: [Sprint/JollyJellyfish](feat) Plus tiers engine#578
Pipeline #72534314 running with stages
......@@ -94,4 +94,26 @@ describe('WireService', () => {
tier: ''
});
}));
fit('should post the plus tier if one is selected', fakeAsync(() => {
service.submitWire({
amount: 10,
guid: null,
payload: null,
payloadType: "offchain",
recurring: false
}, 'month');
tick();
expect(clientMock.post).toHaveBeenCalled();
expect(clientMock.post.calls.mostRecent().args[0]).toBe(`api/v1/wire/null`);
expect(clientMock.post.calls.mostRecent().args[1]).toEqual({
amount: 10,
payload: { address: 'offchain', method: 'offchain' },
method: 'tokens',
recurring: false,
tier: 'month'
});
}));
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment