Skip to content

Commit

Permalink
Merge 2e76ea6 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 + 2e76ea6 commit 3ed272f
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 114 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
2 changes: 2 additions & 0 deletions tests/swork.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { getFetchEvent, mockInit } from "./mock-helper";
const build = (app: Swork) => app["build"]();
const noopHandler = () => {};

declare var global: any;

describe("Swork tests", () => {
let app: Swork;

Expand Down
Loading

0 comments on commit 3ed272f

Please sign in to comment.