Reorganize file structure
This commit is contained in:
1 parent
f6888b8872
commit
b8a8d37e36
24 files changed
+3
-2
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { keygen, solvers } from "./";
|
||||
|
||||
describe("BIOS keygen", () => {
|
||||
it("Sony key for 1234567 is 9648669", () => {
|
||||
let keysList = keygen("1234567");
|
||||
expect(keysList[0][1]).toEqual(["9648669"]);
|
||||
});
|
||||
it("Solvers names should be unique", () => {
|
||||
let names: {[key: string]: boolean} = {};
|
||||
solvers.forEach((solver) => {
|
||||
if (solver.biosName in names) {
|
||||
throw Error(`${solver.biosName} isn't unique name`);
|
||||
} else {
|
||||
names[solver.biosName] = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user