1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-06-28 20:03:59 +00:00
This commit is contained in:
Marek Sašek 2020-09-11 17:13:24 +02:00
parent 4d246540c1
commit 002786d073
No known key found for this signature in database
GPG Key ID: 8791897AFCF3602F

View File

@ -19,7 +19,7 @@ import {
twoDevices,
threeDevices,
} from "./__fixtures__/wifiSettings";
import { WiFiSettings, validator } from "../WiFiSettings";
import { WiFiSettings, validator, byteCount } from "../WiFiSettings";
describe("<WiFiSettings/>", () => {
let firstRender;
@ -213,4 +213,8 @@ describe("<WiFiSettings/>", () => {
];
expect(validator(threeDevices)).toEqual(threeDevicesFormErrors);
});
it("ByteCount function", () => {
expect(byteCount("abc")).toEqual(3);
});
});