Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should not load preview component', function() {
expect(loadChild.loadChild).to.not.have.been.called;
});
});
it('should load preview component', function() {
expect(loadChild.loadChild).to.have.been.called;
});