Added some tests
This commit is contained in:
2
tests/node_modules/tape/example/static/build.sh
generated
vendored
Executable file
2
tests/node_modules/tape/example/static/build.sh
generated
vendored
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
browserify ../timing.js -o bundle.js
|
||||
21
tests/node_modules/tape/example/static/index.html
generated
vendored
Normal file
21
tests/node_modules/tape/example/static/index.html
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
font-family: monospace;
|
||||
white-space: pre;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
if (typeof console === 'undefined') console = {};
|
||||
console.log = function (msg) {
|
||||
var txt = document.createTextNode(msg);
|
||||
document.body.appendChild(txt);
|
||||
};
|
||||
</script>
|
||||
<script src="bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
6
tests/node_modules/tape/example/static/server.js
generated
vendored
Normal file
6
tests/node_modules/tape/example/static/server.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
var http = require('http');
|
||||
var ecstatic = require('ecstatic')(__dirname);
|
||||
var server = http.createServer(ecstatic);
|
||||
server.listen(8000);
|
||||
Reference in New Issue
Block a user