@@ -42,7 +42,7 @@ describe('Custom object formatters', function() {
|
||||
});
|
||||
|
||||
env.describe('with custom pretty-printer', function() {
|
||||
env.beforeEach(function() {
|
||||
env.beforeAll(function() {
|
||||
env.addCustomObjectFormatter(function(obj) {
|
||||
return 'custom(' + obj + ')';
|
||||
});
|
||||
|
||||
@@ -424,6 +424,9 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
resources.customAsyncMatchers = j$.util.clone(
|
||||
runnableResources[parentRunnableId].customAsyncMatchers
|
||||
);
|
||||
resources.customObjectFormatters = j$.util.clone(
|
||||
runnableResources[parentRunnableId].customObjectFormatters
|
||||
);
|
||||
resources.defaultStrategyFn =
|
||||
runnableResources[parentRunnableId].defaultStrategyFn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user