angular-test-runner icon indicating copy to clipboard operation
angular-test-runner copied to clipboard

loading tested module only once in setup

Open michal-lipski opened this issue 8 years ago • 0 comments

When I have some not idempotent operations in module config I don't want to run it every time I run test:

angular.module('numerals', []) .config(() => { numeral.register('locale', 'pl',{...} // cannot register multiple times }) This config code is executed each time when I run test for this module: app.runHtml('....')

It would be nice to do it only when we create testing app: app = test.app([numbers]);

michal-lipski avatar Apr 10 '17 12:04 michal-lipski