MCPcopy
hub / github.com/ampproject/amphtml / expect

Function expect

build-system/tasks/e2e/expect.js:29–37  ·  view source on GitHub ↗

* @param {*} actual * @param {string=} opt_message * @return {!Chai.Assertion}

(actual, opt_message)

Source from the content-addressed store, hash-verified

27 * @return {!Chai.Assertion}
28 */
29function expect(actual, opt_message) {
30 if (!installed) {
31 installed = true;
32 // See https://www.chaijs.com/guide/helpers/ for details on implementation
33 chai.use(installWrappers);
34 }
35
36 return chai.expect(actual, opt_message);
37}
38
39/** @enum {string} */
40const ChaiType = {

Callers 15

index.jsFile · 0.85
setWindowRectMethod · 0.85
shouldFailFunction · 0.85
checkElementUpgradeFunction · 0.85
runTestFunction · 0.85
checkGlobalScopeFunction · 0.85

Calls

no outgoing calls

Tested by 5

testFunction · 0.68
testFunction · 0.68
testFunction · 0.68
testFunction · 0.68
testFunction · 0.68