Starting to reimplement GPX db functions.
This commit is contained in:
1 parent
56b36ea063
commit
510736a33a
4 files changed
+139
-2
No files matched your search
@@ -16,8 +16,8 @@ describe('The dispatcher-worker ', () => {
|
||||
expect(port.onmessage).toBeDefined();
|
||||
expect(port.postMessage).not.toBeCalled();
|
||||
});
|
||||
test('receives a ping and sends back an unknownAction', () => {
|
||||
port.onmessage({ data: { id: 5, payload: { action: 'ping' } } });
|
||||
test('receives a ping and sends back an unknownAction', async () => {
|
||||
await port.onmessage({ data: { id: 5, payload: { action: 'ping' } } });
|
||||
expect(port.postMessage).toBeCalledWith({
|
||||
id: 5,
|
||||
payload: 'unknownAction',
|
||||
|
||||
Reference in new issue
Block a user