Skip to content

Commit

Permalink
possible frame works. References: LeaVerou#14565
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelachrisco committed Mar 20, 2015
1 parent 8d0ebee commit 712f6c0
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 1 deletion.
Empty file added coverage.html
Empty file.
21 changes: 21 additions & 0 deletions junit/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Awesomeplete</title>
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-git.css">
</head>
<body>
<script src="../awesomplete.js" data-cover></script>
<script src="tests.js" data-cover></script>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="http://code.jquery.com/qunit/qunit-git.js"></script>
<script>
QUnit.test( "a basic test example", function( assert ) {
var value = "hello";
assert.equal( value, "hello", "We expect value to be hello" );
});
</script>
</body>
</html>
3 changes: 3 additions & 0 deletions junit/tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
QUnit.test( "hello test", function( assert ) {
assert.ok( 1 == "1", "Passed!" );
});
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
"bugs": {
"url": "https://github.com/LeaVerou/awesomplete/issues"
},
"homepage": "https://leaverou.github.io/awesomplete/"
"homepage": "https://leaverou.github.io/awesomplete/",
"devDependencies": {
"blanket": "^1.1.6",
"mocha": "^2.2.1"
}
}
10 changes: 10 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Mocha tests
var assert = require("assert")
describe('Array', function(){
describe('#indexOf()', function(){
it('should return -1 when the value is not present', function(){
assert.equal(-1, [1,2,3].indexOf(5));
assert.equal(-1, [1,2,3].indexOf(0));
})
})
})
21 changes: 21 additions & 0 deletions tests/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Awesomeplete</title>
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-git.css">
</head>
<body>
<script src="../awesomplete.js" data-cover></script>
<script src="tests.js" data-cover></script>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="http://code.jquery.com/qunit/qunit-git.js"></script>
<script>
QUnit.test( "a basic test example", function( assert ) {
var value = "hello";
assert.equal( value, "hello", "We expect value to be hello" );
});
</script>
</body>
</html>
3 changes: 3 additions & 0 deletions tests/tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
QUnit.test( "hello test", function( assert ) {
assert.ok( 1 == "1", "Passed!" );
});

0 comments on commit 712f6c0

Please sign in to comment.