Skip to content

Instantly share code, notes, and snippets.

@oskee121
Created August 22, 2017 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oskee121/59b36fa63dc7a749a9db4f670a2c14a8 to your computer and use it in GitHub Desktop.
Save oskee121/59b36fa63dc7a749a9db4f670a2c14a8 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/nehome
<!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>
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