How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • show() {
        const showEvent = $.Event(EVENT_SHOW)
    
        $(this._element).trigger(showEvent)
        if (showEvent.isDefaultPrevented()) {
          return
        }
    
        this._clearTimeout()
    
        
    
        //...
    }
    
      
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token punctuation">(</span>method<span class="token punctuation">)</span> Toast<span class="token punctuation">.</span><span class="token function">show</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token keyword">void</span></code></pre>
    /MahdiMajidzadeh/bootstrap-v4-rtl MIT
    0
  • show(relatedTarget) {
        
        //...
    const showEvent = $.Event(EVENT_SHOW, {
          relatedTarget
        })
    
        $(this._element).trigger(showEvent)
    
        if (this._isShown || showEvent.isDefaultPrevented()) {
          return
        }
    
        
    
        //...
    }
    
      
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token punctuation">(</span>method<span class="token punctuation">)</span> Modal<span class="token punctuation">.</span><span class="token function">show</span><span class="token punctuation">(</span>relatedTarget<span class="token operator">:</span> <span class="token builtin">any</span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token keyword">void</span></code></pre>
    /CondensationDB/Condensation Apache-2.0
    0
  • const {debug} = await render(AppComponent)
    
    debug()
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">const</span> debug<span class="token operator">:</span> <span class="token builtin">any</span></code></pre>
    Docs
    0
  • import {render, screen, fireEvent} from '@testing-library/angular'
    import {CounterComponent} from './counter.component.ts'
    
    describe('Counter', () => {
      test('should render counter', async () => {
        await render(CounterComponent, {
          componentProperties: {counter: 5},
        })
    
        expect(screen.getByText('Current Count: 5'))
      })
    
      test('should increment the counter on click', async () => {
        await render(CounterComponent, {
          componentProperties: {counter: 5},
        })
    
        fireEvent.click(screen.getByText('+'))
    
        expect(screen.getByText('Current Count: 6'))
      })
    })
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token punctuation">(</span>alias<span class="token punctuation">)</span> <span class="token keyword">function</span> <span class="token generic-function"><span class="token function">render</span><span class="token generic class-name"><span class="token operator">&lt;</span>ComponentType<span class="token operator">></span></span></span><span class="token punctuation">(</span>component<span class="token operator">:</span> <span class="token builtin">any</span><span class="token punctuation">,</span> renderOptions<span class="token operator">?</span><span class="token operator">:</span> RenderComponentOptions<span class="token operator">&lt;</span>ComponentType<span class="token operator">></span><span class="token punctuation">)</span><span class="token operator">:</span> <span class="token generic-function"><span class="token function">Promise</span><span class="token generic class-name"><span class="token operator">&lt;</span>RenderResult<span class="token operator">&lt;</span>ComponentType<span class="token punctuation">,</span> ComponentType<span class="token operator">>></span></span></span> <span class="token punctuation">(</span><span class="token operator">+</span><span class="token number">2</span> overloads<span class="token punctuation">)</span> <span class="token keyword">import</span> render</code></pre>
    Docs
    0
  • await render(AppComponent, {
      imports: [AppSharedModule, MaterialModule],
    })
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token builtin">any</span></code></pre>
    Docs
    0
  • await render(AppComponent, {detectChanges: false})
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token builtin">any</span></code></pre>
    Docs
    0
  • await render(AppComponent, {
      declarations: [CustomerDetailComponent, ButtonComponent],
    })
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token builtin">any</span></code></pre>
    Docs
    0
  • const {fixture} = await render(AppComponent)
    
    const componentInstance = fixture.componentInstance as AppComponent
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token keyword">const</span> fixture<span class="token operator">:</span> <span class="token builtin">any</span></code></pre>
    Docs
    0
  • await render(AppComponent, {
      removeAngularAttributes: true,
    })
    <pre class="typing-tooltip"><code data-language="javascript" class="language-javascript"><span class="token builtin">any</span></code></pre>
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples