mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
update unit test
This commit is contained in:
parent
45e7fecd39
commit
794bcbdfa3
@ -102,14 +102,14 @@ describe('TransactionLink', () => {
|
||||
|
||||
it('should call clipboard.writeText', () => {
|
||||
expect(navigator.clipboard.writeText).toHaveBeenCalledWith(
|
||||
`http://localhost/redeem/c00000000c000000c0000\n
|
||||
Testy wants to send you 75 Gradido.\n
|
||||
"Katzenauge, Eulenschrei, was verschwunden komm herbei!"\n
|
||||
For the Gradido to be credited, click on the link! The link is valid until 3/30/2022.`,
|
||||
'http://localhost/redeem/c00000000c000000c0000\n' +
|
||||
'Testy wants to send you 75 Gradido.\n' +
|
||||
'"Katzenauge, Eulenschrei, was verschwunden komm herbei!"\n' +
|
||||
'For the Gradido to be credited, click on the link! The link is valid until 3/30/2022.',
|
||||
)
|
||||
})
|
||||
it('toasts success message', () => {
|
||||
expect(toastSuccessSpy).toBeCalledWith('gdd_per_link.link-copied')
|
||||
expect(toastSuccessSpy).toBeCalledWith('gdd_per_link.link-and-text-copied')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user