Skip to content

Instantly share code, notes, and snippets.

@degnome
Forked from anonymous/index.html
Last active February 10, 2017 17:40
Show Gist options
  • Save degnome/71838c71063e193b513671bb4d859a38 to your computer and use it in GitHub Desktop.
Save degnome/71838c71063e193b513671bb4d859a38 to your computer and use it in GitHub Desktop.
JSBin SanityTest
<!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