From b6cc7cd2fc3942d2c69389c06cc729b8a51f7eaa Mon Sep 17 00:00:00 2001 From: Slava Bacherikov Date: Thu, 21 Nov 2013 20:13:02 +0200 Subject: [PATCH] Add simple tests --- tests/test.html | 15 +++++++++++++++ tests/tests.js | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100644 tests/test.html create mode 100644 tests/tests.js diff --git a/tests/test.html b/tests/test.html new file mode 100644 index 0000000..550a43d --- /dev/null +++ b/tests/test.html @@ -0,0 +1,15 @@ + + + + + QUnit Example + + + +
+
+ + + + + diff --git a/tests/tests.js b/tests/tests.js new file mode 100644 index 0000000..5cc03cf --- /dev/null +++ b/tests/tests.js @@ -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" ); +});