Use ServiceWorkerTestEnvironemnt
Formatting for promises