mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
extending profile test
This commit is contained in:
parent
a6b13a77c8
commit
2456a1f436
@ -75,6 +75,24 @@ test('testing', async () => {
|
||||
expect(screen.getByTestId('name').textContent).toBe("jester");
|
||||
});
|
||||
|
||||
await act(async () => {
|
||||
identity = { name: 'tester' };
|
||||
await profileContext.actions.setRevision(2);
|
||||
});
|
||||
|
||||
await waitFor(async () => {
|
||||
expect(screen.getByTestId('name').textContent).toBe("tester");
|
||||
});
|
||||
|
||||
await act(async () => {
|
||||
await profileContext.actions.clearToken();
|
||||
});
|
||||
|
||||
await waitFor(async () => {
|
||||
expect(screen.getByTestId('name').textContent).toBe("");
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user