it('should call the module bar immediately', function () { var barSpy = expect.spyOn(Foo.prototype, 'barModule'); new Foo(); expect(barSpy).toHaveBeenCalled(); });