MCPcopy
hub / github.com/storybookjs/storybook / expect

Function expect

test-storybooks/ember-cli/ember-output/assets/vendor.js:48416–48419  ·  view source on GitHub ↗
(val, message)

Source from the content-addressed store, hash-verified

48414 return val;
48415 }
48416 function expect(val, message) {
48417 if (val === null || val === undefined) throw new Error(message);
48418 return val;
48419 }
48420 function unreachable(message) {
48421 if (message === void 0) {
48422 message = 'unreachable';

Calls

no outgoing calls

Tested by 6

testRoutingBehaviourFunction · 0.72
expectToolbarToBeVisibleFunction · 0.72
expectToolbarToNotExistFunction · 0.72
runTestsFunction · 0.68
waitForSetCurrentStoryFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…