Fix tests

This commit is contained in:
Tau 2019-03-15 19:47:04 -04:00
parent aa18e805e9
commit 02c6e6fe2f
2 changed files with 5 additions and 6 deletions

View File

@ -46,7 +46,7 @@ test("decode hello", () => {
const obj = decode(req);
expect(obj.cmd).toBe("hello");
expect(obj.type).toBe("hello");
expect(obj.gameId).toBe("SDBT");
expect(obj.keychipId).toBe("A69E01A9999");
});
@ -105,10 +105,8 @@ test("decode lookup", () => {
const obj = decode(req);
expect(obj.cmd).toBe("lookup");
expect(obj.type).toBe("lookup");
expect(obj.gameId).toBe("SDBT");
expect(obj.keychipId).toBe("A69E01A9999");
expect(obj.luid).toEqual(
Buffer.from([0x01, 0x03, 0x64, 0x95, 0x85, 0x05, 0x23, 0x03, 0x06, 0x76])
);
expect(obj.luid).toBe("01036495850523030676");
});

View File

@ -7,5 +7,6 @@
"strictNullChecks": true,
"target": "es2017"
},
"include": ["./src/"]
"include": ["./src/"],
"exclude": ["./src/**/*.test.ts"]
}