move "tests" to "test" for QUnit

This commit is contained in:
mmcwilliams 2018-02-10 12:09:58 -05:00
parent 2217f709da
commit d36148000a
4 changed files with 24 additions and 8 deletions

16
app/www/test/index.html Normal file
View File

@ -0,0 +1,16 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>INTVAL3 client tests</title>
<link href="../static/css/qunit-2.5.0.css" rel="stylesheet" />
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="../static/js/qunit-2.5.0.js"></script>
<script src="../static/js/intval.core.js"></script>
<script src="./tests.js"></script>
</body>
</html>

3
app/www/test/tests.js Normal file
View File

@ -0,0 +1,3 @@
QUnit.test('hello world', function (assert) {
assert.ok(true, 'this is ok')
})

5
test/index.js Normal file
View File

@ -0,0 +1,5 @@
'use strict'
QUnit.test('hello world', function (assert) {
assert.ok(true, 'this is true')
})

View File

@ -1,8 +0,0 @@
'use strict'
const intval = require('../lib/intval')
intval.init()
intval.setExposure(2000)
intval.setDir(false)