- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 199 for Spies (0.31 sec)
-
packages/driver/cypress/e2e/e2e/origin/commands/spies_stubs_clocks.cy.ts
import { findCrossOriginLogs } from '../../../../support/utils' context('cy.origin spies, stubs, and clock', () => { beforeEach(() => { cy.visit('/fixtures/primary-origin.html') cy.get('a[data-cy="cross-origin-secondary-link"]').click() }) afterEach(() => { // FIXME: Tests that end with a cy.origin command and enqueue no further cy // commands may have origin's unload event bleed into subsequent tests
Plain Text - Registered: 2023-02-03 08:39 - Last Modified: 2022-05-12 17:51 - 5.3K bytes - Viewed (0) -
test/ngAnimate/rafSchedulerSpec.js
JavaScript - Registered: 2023-02-03 06:53 - Last Modified: 2016-08-10 19:52 - 3.4K bytes - Viewed (0) -
tests/postcss-plugins/nesting/index.test.js
} } `) expect(spyPlugin.spies.Once).toHaveBeenCalled() expect(spyPlugin.spies.OnceExit).toHaveBeenCalled() expect(spyPlugin.spies.Root).toHaveBeenCalled() expect(spyPlugin.spies.Rule).toHaveBeenCalled() expect(spyPlugin.spies.AtRule).toHaveBeenCalled() expect(spyPlugin.spies.Comment).toHaveBeenCalled() expect(spyPlugin.spies.Declaration).toHaveBeenCalled() }) // ---
JavaScript - Registered: 2023-01-31 16:26 - Last Modified: 2023-01-31 14:37 - 4.5K bytes - Viewed (0) -
test/ngRoute/routeSpec.js
expect(called).toBe(true); expect(spies.fooResolveSpy).not.toHaveBeenCalled(); expect(spies.fooTemplateSpy).not.toHaveBeenCalled(); expect(spies.fooControllerSpy).not.toHaveBeenCalled(); expect(spies.barResolveSpy).not.toHaveBeenCalled(); expect(spies.barTemplateSpy).not.toHaveBeenCalled(); expect(spies.barControllerSpy).not.toHaveBeenCalled();
JavaScript - Registered: 2023-02-03 06:53 - Last Modified: 2020-09-30 17:46 - 85.9K bytes - Viewed (0) -
test/browser/lifecycles/lifecycle.test.js
render() { return <div />; } } let spies = [ 'componentWillMount', 'componentDidMount', 'componentWillUnmount' ]; let verifyLifecycleMethods = TestComponent => { let proto = TestComponent.prototype; spies.forEach(s => sinon.spy(proto, s)); let reset = () => spies.forEach(s => proto[s].resetHistory());
JavaScript - Registered: 2023-01-31 11:28 - Last Modified: 2022-10-14 04:33 - 16.1K bytes - Viewed (0) -
spec/main-process/file-recovery-service.test.js
describe('FileRecoveryService', function() { let recoveryService, recoveryDirectory, spies; this.timeout(10 * 1000); beforeEach(() => { recoveryDirectory = temp.mkdirSync('atom-spec-file-recovery'); recoveryService = new FileRecoveryService(recoveryDirectory); spies = sinon.createSandbox(); }); afterEach(() => { spies.restore(); try { temp.cleanupSync(); } catch (e) { // Ignore
JavaScript - Registered: 2023-01-23 05:20 - Last Modified: 2020-09-22 15:17 - 6.1K bytes - Viewed (0) -
src/cdk-experimental/menu/menu-group.spec.ts
const spies: jasmine.Spy[] = []; fixture.debugElement.queryAll(By.directive(CdkMenuGroup)).forEach((group, index) => { const spy = jasmine.createSpy(`cdkMenuGroup ${index} change spy`); spies.push(spy); group.injector.get(CdkMenuGroup).change.subscribe(spy); }); menuItems[0].trigger(); expect(spies[2]).toHaveBeenCalledTimes(1);
Plain Text - Registered: 2023-01-29 16:47 - Last Modified: 2021-10-18 18:58 - 7.5K bytes - Viewed (0) -
npm/react/cypress/component/basic/stub-example/README.md
... cy.get('@clicker').should('have.been.calledTwice') ``` ## More info Watch [Assert that the stub was called twice](https://youtu.be/AlltFcsIFvc) showing these specs.
Plain Text - Registered: 2023-02-03 08:39 - Last Modified: 2020-10-01 10:54 - 1.2K bytes - Viewed (0) -
tests/postcss-plugins/nesting/plugins.js
// These break Root, Rule, AtRule, Declaration, Comment, } }, { postcss: true } ) return { plugin, spies: { Once, OnceExit, Root, AtRule, Rule, Comment, Declaration, }, }
JavaScript - Registered: 2023-01-31 16:26 - Last Modified: 2022-02-21 15:12 - 674 bytes - Viewed (0) -
packages/app/cypress/e2e/runner/retries.ui.cy.ts
cy.get('.instruments-container').should('contain', 'Spies / Stubs (1)') cy.get('.instruments-container').should('contain', 'Routes (1)') cy.get('.runnable-err').should('contain', 'AssertionError') }) cy.get(attemptTag(2)).click().parentsUntil('.collapsible').last().parent().within(() => { cy.get('.instruments-container').should('contain', 'Spies / Stubs (2)')
Plain Text - Registered: 2023-02-03 08:39 - Last Modified: 2022-05-10 16:46 - 11.8K bytes - Viewed (0)