Skip to content
#

matcher

Here are 103 public repositories matching this topic...

mockk
AnthonyMillerSF
AnthonyMillerSF commented Apr 16, 2020

I have a library that I generate all of my mocks into that is imported in my unit tests. When mocking a protocol, the generated mock object doesn't have an initializer declared. This means is uses the default initializer, which would be fine, except the default init() method is internal. I can get around this by importing my mock library @testable, but I'd suggest that protocol mocks for publi

mpaccione
mpaccione commented Apr 18, 2020

Hey Miles, you've gone and created a convenient library here that intend to pair with react-syntax-highlighter to do code highlighting from old Wordpress posts in Gatbsy.

Good job!

That being said I have no damn clue how to do something very simple. Replace a tag like a "pre" tag with another tag. Your docs talk about custom matchers but this isn't custom at all... this is the direct use cas

Pass two numbers, get a regex-compatible source string for matching ranges. Fast compiler, optimized regex, and validated against more than 2.78 million test assertions. Useful for creating regular expressions to validate numbers, ranges, years, etc.

  • Updated Aug 2, 2019
  • JavaScript
jsamr
jsamr commented Jan 27, 2020

Although the two source streams and the result stream have all a length of 5, an exception is thrown.

Reproduction:

import { cold, hot } from 'jest-marbles'
import { buffer, mergeAll } from 'rxjs/operators'

describe('test', () => {
  it('should not fail', () => {
    const source1 = cold('AB--|')
    const source2 = hot('^-A-|')
    expect(source1.pipe(buffer(source2), mergeAl

Improve this page

Add a description, image, and links to the matcher topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the matcher topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.