expect(func).toThrow() now supports both Function and String