MCPcopy Index your code
hub / github.com/angular-split/angular-split / checkEventCount

Function checkEventCount

cypress/e2e/7.click.cy.js:5–21  ·  view source on GitHub ↗
({ dragStartCount, dragEndCount, gutterClickCount, gutterDblClickCount, transitionEndCount })

Source from the content-addressed store, hash-verified

3import { moveGutterByMouse, checkSplitDirAndSizes } from '../support/splitUtils'
4
5function checkEventCount({ dragStartCount, dragEndCount, gutterClickCount, gutterDblClickCount, transitionEndCount }) {
6 if (dragStartCount !== undefined) {
7 cy.get('.logs ul li').filter('.dragStart').should('have.length', dragStartCount)
8 }
9 if (dragEndCount !== undefined) {
10 cy.get('.logs ul li').filter('.dragEnd').should('have.length', dragEndCount)
11 }
12 if (gutterClickCount !== undefined) {
13 cy.get('.logs ul li').filter('.gutterClick').should('have.length', gutterClickCount)
14 }
15 if (gutterDblClickCount !== undefined) {
16 cy.get('.logs ul li').filter('.gutterDblClick').should('have.length', gutterDblClickCount)
17 }
18 if (transitionEndCount !== undefined) {
19 cy.get('.logs ul li').filter('.transitionEnd').should('have.length', transitionEndCount)
20 }
21}
22
23context('Gutter click example page tests', () => {
24 const W = 1070

Callers 1

7.click.cy.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…