Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Hockin (1.71 sec)

  1. test/integration/model/optimistic_locking.test.js

    const Support = require('../support');
    const DataTypes = require('../../../lib/data-types');
    const chai = require('chai');
    const expect = chai.expect;
    
    describe(Support.getTestDialectTeaser('Model'), () => {
      describe('optimistic locking', () => {
        let Account;
        beforeEach(async function () {
          Account = this.sequelize.define(
            'Account',
            {
              number: {
                type: DataTypes.INTEGER
              }
            },
    JavaScript
    - Registered: 2021-10-27 14:16
    - Last Modified: 2020-06-28 08:45
    - 2.4K bytes
    - Viewed (0)
  2. packages/flow-upgrade/flow-typed/npm/jest_v20.x.x.js

         * An array that contains all the object instances that have been
         * instantiated from this mock function.
         */
        instances: mixed
      },
      /**
       * Resets all information stored in the mockFn.mock.calls and
       * mockFn.mock.instances arrays. Often this is useful when you want to clean
       * up a mock's usage data between two assertions.
       */
      mockClear(): Function,
      /**
    JavaScript
    - Registered: 2021-10-28 21:39
    - Last Modified: 2017-08-09 19:02
    - 16.3K bytes
    - Viewed (0)
  3. e2e/mock-names/without-mock-name-not-called/__tests__/index.js

     * LICENSE file in the root directory of this source tree.
     */
    
    'use strict';
    
    jest.mock('../');
    const importedFn = require('../');
    const mockFn = jest.fn(importedFn);
    
    test('first test', () => {
      // mockFn explicitly not called to test error output
      expect(mockFn).toHaveBeenCalledTimes(1);
    JavaScript
    - Registered: 2021-10-28 12:01
    - Last Modified: 2019-01-08 17:41
    - 445 bytes
    - Viewed (0)
  4. e2e/mock-names/with-empty-mock-name-not-called/__tests__/index.js

     */
    
    'use strict';
    
    jest.mock('../');
    const importedFn = require('../');
    // empty mock name should result in default 'jest.fn()' output
    const mockFn = jest.fn(importedFn).mockName('');
    
    test('first test', () => {
      // mockFn explicitly not called to test error output
      expect(mockFn).toHaveBeenCalledTimes(1);
    JavaScript
    - Registered: 2021-10-28 12:01
    - Last Modified: 2019-01-08 17:41
    - 521 bytes
    - Viewed (0)
  5. packages/@vue/cli-ui/graphql-server.js

            return contextData
          }
        }
      }
    
      // Automatic mocking
      if (options.enableMocks) {
        // Customize this file
        apolloServerOptions.mocks = load(options.paths.mocks)
        apolloServerOptions.mockEntireSchema = false
    
        if (!options.quiet) {
          if (process.env.NODE_ENV === 'production') {
            console.warn('Automatic mocking is enabled, consider disabling it with the \'enableMocks\' option.')
    JavaScript
    - Registered: 2021-10-26 23:15
    - Last Modified: 2020-02-03 11:35
    - 5.9K bytes
    - Viewed (0)
  6. test/unit/callbacks.js

    					assert.strictEqual( cblist.locked(), true, "Locking reflected in accessor" );
    
    					// Locking while firing (gh-1990)
    					output = "X";
    					cblist = jQuery.Callbacks( flags );
    					cblist.add( cblist.lock );
    					cblist.add( function( str ) {
    						output += str;
    					} );
    					cblist.fire( "A" );
    					assert.strictEqual( output, "XA", "Locking doesn't abort execution (gh-1990)" );
    
    					// Ordering
    JavaScript
    - Registered: 2021-10-25 05:12
    - Last Modified: 2020-01-07 22:59
    - 11.5K bytes
    - Viewed (0)
  7. npm/react/examples/using-babel/src/Mock.spec.js

    import { mount } from '@cypress/react'
    import Post from './Post'
    import * as calc from './calc'
    
    // confirm the Post component that imports and calls the "getRandomNumber"
    // renders the mock value because the test stubs it
    describe('Mocking', () => {
      it('mocks import used by the Post', () => {
        cy.stub(calc, 'getRandomNumber')
        .as('lucky')
        .returns(777)
    
        mount(<Post title="post title" children="post text" />)
    JavaScript
    - Registered: 2021-10-29 08:39
    - Last Modified: 2020-10-14 06:45
    - 533 bytes
    - Viewed (0)
  8. npm/vue/cypress/component/advanced/mocking-components/spec.js

    /// <reference types="cypress" />
    import { mount } from '@cypress/vue'
    import ParentComponent from './Parent.vue'
    
    describe('Mocking components', () => {
      beforeEach(() => {
        // by deleting _Ctor we force Vue system to recompile the
        // component and render the new component tree
        delete ParentComponent._Ctor
      })
    
      it('renders real child component', () => {
        mount(ParentComponent)
        cy.get('.a-parent')
        cy.get('.a-child')
    JavaScript
    - Registered: 2021-10-29 08:39
    - Last Modified: 2020-09-29 20:14
    - 1.5K bytes
    - Viewed (0)
  9. docs/_style/prism-master/components/prism-inform7.min.js

    l(?:s|ing)?|consulting|contain(?:s|ing)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:ve|s|ving)|hold(?:s|ing)?|impl(?:y|ies)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:s|ing)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:s|ing)?|setting|showing|singing|sleeping|smelling|squeezing|switching|support(?:s|ing)?|swearing|taking|tasting|telling|thinking|th...
    JavaScript
    - Registered: 2021-10-28 20:08
    - Last Modified: 2018-12-19 06:09
    - 3.3K bytes
    - Viewed (0)
  10. packages/react-dom/src/__tests__/ReactCompositeComponent-test.js

          shouldComponentUpdate() {
            return mockFn();
          }
    
          render() {
            return <div>{this.state.hasUpdatedState}</div>;
          }
        }
    
        ReactDOM.render(<Component />, div);
    
        expect(instance).toBeDefined();
        expect(mockFn).not.toBeCalled();
    
        instance.setState({hasUpdatedState: true}, () => {
          expect(mockFn).toBeCalled();
    JavaScript
    - Registered: 2021-10-31 11:45
    - Last Modified: 2021-05-13 17:18
    - 48.5K bytes
    - Viewed (0)
Back to top