This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expect(x).toEqual(y); compares objects or primitives x and y and passes if they are equivalent | |
expect(x).toBe(y); compares objects or primitives x and y and passes if they are the same object | |
expect(x).toMatch(pattern); compares x to string or regular expression pattern and passes if they match | |
expect(x).toBeDefined(); passes if x is not undefined | |
expect(x).toBeUndefined(); passes if x is undefined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fallbacks = {} | |
, networks = {} | |
, cacheName = "OldSchoolAppCache" | |
, settings = {} | |
; | |
this.onmessage = function (e) { | |
var msg = e.data; | |
if (msg.type && msg.type === "manifest") { | |
var lines = msg.manifest.split(/\n+/) |