mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-10-30 22:20:31 +01:00 
			
		
		
		
	Add test
This commit is contained in:
		| @@ -19,7 +19,7 @@ import { | |||||||
|     twoDevices, |     twoDevices, | ||||||
|     threeDevices, |     threeDevices, | ||||||
| } from "./__fixtures__/wifiSettings"; | } from "./__fixtures__/wifiSettings"; | ||||||
| import { WiFiSettings, validator } from "../WiFiSettings"; | import { WiFiSettings, validator, byteCount } from "../WiFiSettings"; | ||||||
|  |  | ||||||
| describe("<WiFiSettings/>", () => { | describe("<WiFiSettings/>", () => { | ||||||
|     let firstRender; |     let firstRender; | ||||||
| @@ -213,4 +213,8 @@ describe("<WiFiSettings/>", () => { | |||||||
|         ]; |         ]; | ||||||
|         expect(validator(threeDevices)).toEqual(threeDevicesFormErrors); |         expect(validator(threeDevices)).toEqual(threeDevicesFormErrors); | ||||||
|     }); |     }); | ||||||
|  |  | ||||||
|  |     it("ByteCount function", () => { | ||||||
|  |         expect(byteCount("abc")).toEqual(3); | ||||||
|  |     }); | ||||||
| }); | }); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user