Scripted Automated Testing in ServiceNow

Using fit to focus on certain test cases

Define a variable outside of the describe block, so that you can set it in a beforeAll or beforeEach block and access it in an it block

Make sure you use getValue

var grSysUser = new GlideRecord('sys_user');
 
expect(grSysUser.first_name).toEqual('Jesse');
// Expected Jesse to equal 'Jesse'.
 
expect(grSysUser.getValue('first_name')).toEqual('Jesse');
// passes