Skip to content

Commit

Permalink
update service-worker.wdio-spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tatilepizs committed Oct 2, 2024
1 parent be4fcf9 commit 53c41ea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/e2e/default/service-worker/service-worker.wdio-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ const placeFactory = require('@factories/cht/contacts/place');
const userFactory = require('@factories/cht/users/users');

describe('Service worker cache', () => {
const DEFAULT_TRANSLATIONS = {
'sync.now': 'Sync now',
'sidebar_menu.title': 'Menu',
'sync.status.not_required': 'All reports synced',
};

// global caches fetch Response navigator
const getCachedRequests = async (raw) => {
const cacheDetails = await browser.executeAsync(async (callback) => {
Expand Down Expand Up @@ -77,12 +83,6 @@ describe('Service worker cache', () => {
}
};

const DEFAULT_TRANSLATIONS = {
'sync.now': 'Sync now',
'sidebar_menu.title': 'Menu',
'sync.status.not_required': 'All reports synced',
};

before(async () => {
await utils.saveDoc(district);
await utils.createUsers([chw]);
Expand Down

0 comments on commit 53c41ea

Please sign in to comment.