MCPcopy Create free account
hub / github.com/EsperoTech/yaade / extractCustomPendingMessage

Function extractCustomPendingMessage

server/src/main/resources/jasmine.js:1035–1042  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1033 };
1034
1035 const extractCustomPendingMessage = function(e) {
1036 const fullMessage = e.toString(),
1037 boilerplateStart = fullMessage.indexOf(Spec.pendingSpecExceptionMessage),
1038 boilerplateEnd =
1039 boilerplateStart + Spec.pendingSpecExceptionMessage.length;
1040
1041 return fullMessage.slice(boilerplateEnd);
1042 };
1043
1044 Spec.pendingSpecExceptionMessage = '=> marked Pending';
1045

Callers 1

jasmine.jsFile · 0.70

Calls 2

indexOfMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected