From 9a7623de1458f799baa109d0afbed08547874550 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 15 Dec 2021 13:33:02 +0100 Subject: facilitate mocking imported values --- test/unit/test_indexeddb.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'test') diff --git a/test/unit/test_indexeddb.py b/test/unit/test_indexeddb.py index 965f318..d48946e 100644 --- a/test/unit/test_indexeddb.py +++ b/test/unit/test_indexeddb.py @@ -55,13 +55,7 @@ def test_save_remove_item(execute_in_page, indexeddb_code): """ execute_in_page(indexeddb_code) # Don't use Haketilo's default initial data. - execute_in_page( - '''{ - const _get_db = haketilodb.get; - get_db = () => _get_db({}); - haketilodb.get = get_db; - }''' - ) + execute_in_page('initial_data = {};') # Start with no database. execute_in_page( -- cgit v1.2.3