Created
August 22, 2017 09:12
-
-
Save oskee121/59b36fa63dc7a749a9db4f670a2c14a8 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/nehome
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<h1>Hello</h1> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/expect/1.20.2/expect.min.js"></script> | |
<script id="jsbin-javascript"> | |
console.log('Starting tests'); | |
function add(a, b) { | |
return a + b; | |
} | |
expect(add(3,5)).toBe(8); | |
console.log('All tests have passed ~'); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">console.log('Starting tests'); | |
function add(a, b) { | |
return a + b; | |
} | |
expect(add(3,5)).toBe(8); | |
console.log('All tests have passed ~');</script></body> | |
</html> |
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
console.log('Starting tests'); | |
function add(a, b) { | |
return a + b; | |
} | |
expect(add(3,5)).toBe(8); | |
console.log('All tests have passed ~'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment