├ example/
| └── app.js
| └── app.test.js
| └── math.js
This file contains 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
export const add = jest.fn(); | |
export const subtract = jest.fn(); | |
export const multiply = jest.fn(); | |
export const divide = jest.fn(); |
This file contains 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
import * as math from './math.js'; | |
export const doAdd = (a, b) => math.add(a, b); | |
export const doSubtract = (a, b) => math.subtract(a, b); | |
export const doMultiply = (a, b) => math.multiply(a, b); | |
export const doDivide = (a, b) => math.divide(a, b); |
This file contains 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
export const add = (a, b) => a + b; | |
export const subtract = (a, b) => b - a; | |
export const multiply = (a, b) => a * b; | |
export const divide = (a, b) => b / a; |
This file contains 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
{ | |
"/Users/rph/dev/oss/jest-coverage-leak/module.js": { | |
"path": "/Users/rph/dev/oss/jest-coverage-leak/module.js", | |
"statementMap": { | |
"0": { | |
"start": { | |
"line": 1, | |
"column": 13 | |
}, | |
"end": { |
I hereby claim:
- I am rickhanlonii on github.
- I am rickhanlonii (https://keybase.io/rickhanlonii) on keybase.
- I have a public key ASChr2UUJm_gA-01WTq5vrL2tZQS8MJD6C1VKGtLke8kJAo
To claim this, I am signing this object:
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- This policy is broken --> | |
<meta http-equiv="Content-Security-Policy" content="script-src * 'unsafe-inline'"> | |
<!-- This policy works --> | |
<!--<meta http-equiv="Content-Security-Policy" content="script-src * 'unsafe-inline' 'unsafe-eval">--> | |
<script src="https://code.jquery.com/jquery-2.2.1.min.js" integrity="sha256-gvQgAFzTH6trSrAWoH1iPo9Xc96QxSZ3feW6kem+O00=" crossorigin="anonymous"></script> |
This file contains 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
. |
This file contains 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
import notifs | |
def print_notification(title, message): | |
print "Notification received: {0}: {1}".format(title, message) | |
def web_app_notify(title, message): | |
print "Webapp notification received: {0}: {1}".format(title, message) | |
def iphone_app_notify(title, message): | |
print "iPhone App notification received: {0}: {1}".format(title, message) |
NewerOlder