Skip to content

Instantly share code, notes, and snippets.

Created February 10, 2017 17:38
Show Gist options
  • Save anonymous/f8649e96776a2234b49a8e4eefbb491c to your computer and use it in GitHub Desktop.
Save anonymous/f8649e96776a2234b49a8e4eefbb491c to your computer and use it in GitHub Desktop.
JS Bin Sanity Test // source https://jsbin.com/tatomu
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Sanity Test">
<script src="https://wzrd.in/standalone/tape@latest"></script>
<script src="https://wzrd.in/standalone/tap-browser-color@latest"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script>
window.test = tape;
tapBrowserColor();
</script>
<script id="jsbin-javascript">
test('SanityTest', assert => {
const msg = 'Expected is actual.';
const expected = true;
const actual = true;
try {
assert.ok(true, 'True is truthy.');
} catch(e) {
console.log(e);
}
assert.equal(actual, expected, msg);
assert.end();
});
</script>
<script id="jsbin-source-javascript" type="text/javascript">test('SanityTest', assert => {
const msg = 'Expected is actual.';
const expected = true;
const actual = true;
try {
assert.ok(true, 'True is truthy.');
} catch(e) {
console.log(e);
}
assert.equal(actual, expected, msg);
assert.end();
});</script></body>
</html>
test('SanityTest', assert => {
const msg = 'Expected is actual.';
const expected = true;
const actual = true;
try {
assert.ok(true, 'True is truthy.');
} catch(e) {
console.log(e);
}
assert.equal(actual, expected, msg);
assert.end();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment