As HG said, there is no law requiring you to give two weeks notice. However, what will cause you to lose UC benefits is not your failure to give notice, but the fact that you quit at all. UC is only in EXTREMELY rare situations available to employees who quit.