Add simple tests
This commit is contained in:
1 parent
d79ba01552
commit
b6cc7cd2fc
2 files changed
+24
No files matched your search
@@ -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>
|
||||
@@ -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" );
|
||||
});
|
||||
Reference in new issue
Block a user