split long string
This commit is contained in:
+10
-1
@@ -187,7 +187,16 @@ describe("make packet", () => {
|
|||||||
it("builds a good WifiSettingsSet", () => {
|
it("builds a good WifiSettingsSet", () => {
|
||||||
const sess = { outgoingCommandId: 2, ticket: [1, 2, 3, 4] };
|
const sess = { outgoingCommandId: 2, ticket: [1, 2, 3, 4] };
|
||||||
const _expected_str =
|
const _expected_str =
|
||||||
"f1d00118d1000002110a01600c010000010203040101010101010101010101010101010100010101726a786f647501010101010101010101010101010101010101010101010101017274716473627360710101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101312f312f312f31010101010101010101312f3334342f3334342f333434010101312f312f312f31010101010101010101312f312f312f31010101010101010101312f312f312f3101010101010101010101010101";
|
"f1d00118d1000002110a01600c01000001020304" + // drw header + ticket
|
||||||
|
"0101010101010101010101010101010100010101" + // all zeroes, but DHCP u32 set to 1
|
||||||
|
"726a786f64750101010101010101010101010101010101010101010101010101" + // ssid
|
||||||
|
"7274716473627360710101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101" + // pass
|
||||||
|
"312f312f312f31010101010101010101" + // 0.0.0.0
|
||||||
|
"312f3334342f3334342f333434010101" + // 0.255.255.255
|
||||||
|
"312f312f312f31010101010101010101" + // 0.0.0.0
|
||||||
|
"312f312f312f31010101010101010101" + // 0.0.0.0
|
||||||
|
"312f312f312f31010101010101010101" + // 0.0.0.0
|
||||||
|
"01010101"; // 0000
|
||||||
const expected = hstrToBA(_expected_str);
|
const expected = hstrToBA(_expected_str);
|
||||||
|
|
||||||
const got = SendWifiDetails(sess, "skynet", "supercrap", true);
|
const got = SendWifiDetails(sess, "skynet", "supercrap", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user