Skip to content

Commit

Permalink
Merge 9264a8f into 1abf046
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-lee-collins committed Aug 14, 2019
2 parents 1abf046 + 9264a8f commit c38d2d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# swork

[![npm](https://img.shields.io/npm/v/swork)](https://www.npmjs.com/package/swork) [![travis ci](https://travis-ci.org/justin-lee-collins/swork.svg?branch=master)](https://travis-ci.org/justin-lee-collins/swork.svg?branch=master)[![Coverage Status](https://coveralls.io/repos/github/justin-lee-collins/swork/badge.svg?branch=master)](https://coveralls.io/github/justin-lee-collins/swork?branch=master) [![download](https://img.shields.io/npm/dw/swork)](https://img.shields.io/npm/dw/swork) [![Greenkeeper badge](https://badges.greenkeeper.io/justin-lee-collins/swork.svg)](https://greenkeeper.io/)
[![npm](https://img.shields.io/npm/v/swork)](https://www.npmjs.com/package/swork) [![travis ci](https://travis-ci.org/justin-lee-collins/swork.svg?branch=master)](https://travis-ci.org/justin-lee-collins/swork.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/github/justin-lee-collins/swork/badge.svg?branch=master)](https://coveralls.io/github/justin-lee-collins/swork?branch=master) [![download](https://img.shields.io/npm/dw/swork)](https://img.shields.io/npm/dw/swork) [![Greenkeeper badge](https://badges.greenkeeper.io/justin-lee-collins/swork.svg)](https://greenkeeper.io/)

swork is a service worker building framework intended to be a robust foundation for service worker applications. TypeScript and async functions are central to its implementation enabling increased productivity, reduced error rate and the removal of callbacks. Swork is not bundled with any middleware.

Expand Down
2 changes: 2 additions & 0 deletions tests/mock-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import * as Request from "service-worker-mock/models/Request";
// @ts-ignore
import * as Response from "service-worker-mock/models/Response";

declare var global: any;

export function mockInit() {
Object.assign(global, makeServiceWorkerEnv(), {
fetch: (request: RequestInfo) => {
Expand Down

0 comments on commit c38d2d5

Please sign in to comment.