Skip to content

Commit

Permalink
Add simple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bacher09 committed Nov 21, 2013
1 parent d79ba01 commit b6cc7cd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QUnit Example</title>
<link rel="stylesheet" href="./assets/qunit.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="./assets/qunit.js"></script>
<script src="../decrypt_bios.js"></script>
<script src="./tests.js"></script>
</body>
</html>
9 changes: 9 additions & 0 deletions tests/tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
test( "Samsung test", function() {
var code = autoGetBiosPwd("07088120410C0000");
ok(code.samsung[0] == "12345", "Samsung 12345" );
});

test("Sony test", function() {
var code = autoGetBiosPwd("1234567");
ok(code.sony == "9648669", "Sony" );
});

0 comments on commit b6cc7cd

Please sign in to comment.