Skip to content
#

component-testing

Here are 22 public repositories matching this topic...

bUnit
egil
egil commented Nov 24, 2020

If a component has a child content parameter that is a RenderFragment<TValue>, then the parameter builder's AddChildContent method should throw an exception with an error message telling the user to use .Add(p => p.ChildContent, ...) instead.

For example, the following should throw an helpful exception:

var cut = RenderComponent<Virtualize<string>>(ps => ps
	.Add(p => p.Items, Te
pactum
emfomy
emfomy commented Sep 23, 2021

Describe the bug
Most expect methods print the request and response when the assertion fails.
However, the custom expect handler does not show these objects.

To Reproduce
Steps to reproduce the behavior:

const spec = pactum.spec();
spec.get(url);
await spec.toss();
await spec.response().to.have._((ctx) => {
  assert.fail('error');
});

*Expected behavior

Improve this page

Add a description, image, and links to the component-testing 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 component-testing topic, visit your repo's landing page and select "manage topics."

Learn more