MCPcopy Index your code
hub / github.com/angular/angular / buildError

Function buildError

packages/private/testing/matchers/index.ts:102–113  ·  view source on GitHub ↗
(isNot: boolean)

Source from the content-addressed store, hash-verified

100 return {compare: buildError(false), negativeCompare: buildError(true)};
101
102 function buildError(isNot: boolean) {
103 return function (actual: any, className: string) {
104 return {
105 pass: hasClass(actual, className) == !isNot,
106 get message() {
107 return `Expected ${actual.outerHTML} ${
108 isNot ? 'not ' : ''
109 }to contain the CSS class "${className}"`;
110 },
111 };
112 };
113 }
114 },
115
116 toHaveCssStyle: function () {

Callers 1

index.tsFile · 0.85

Calls 1

hasClassFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…