How to use the tst.mocks function in tst

To help you get started, we’ve selected a few tst examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Animatron / player / tests / run-for-teamcity.html View on Github external
if (!window.__anm_conf) window.__anm_conf = {};
      window.__anm_conf.forceWindowScope = true;

        queue(require)(
                [ _files['jasmine'],
                  // _files['jasmine.html'],
                  _files['jasmine.teamcity'],
                  _files['jasmine.phantom'],
                  _files['vnd.matrix'],
                  _files['anm.dom-engine'], // FIXME: switch to test-engine
                  _files['anm.init'],
                  _files['anm.player'],
                  _files['anm.collisions'],
                  _files['anm.intact-import'],
                  _files['tst.matchers'],
                  _files['tst.mocks'],
                  _files['tst.utils'],
                  _files['tst.engine']
          ], function() {
            anm.switchEngineTo(TestEngine);
            loadJasmine(window, [ new jasmine.TeamcityReporter(),
                                  new jasmine.PhantomReporter({ onFinish: on_finish }) ],
                                [ '*' ]);
          }
        );
      }
github Animatron / player / tests / run-for-terminal.html View on Github external
// _files['jasmine.html'],
                  _files['jasmine.tap'],
                  _files['jasmine.phantom'],
                  _files['vnd.matrix'],
                  _files['anm.dom-engine'], // FIXME: switch to test-engine
                  _files['anm.init'],
                  _files['anm.player'],
                  _files['anm.collisions'],
                  //_files['anm.intact-import'], // FIXME: enable
                  _files['anm.import'],
                  _files['anm.audio'],
                  _files['anm.audio-export'],
                  _files['anm.scripting'],
                  _files['anm.shapes'],
                  _files['tst.matchers'],
                  _files['tst.mocks'],
                  _files['tst.utils'],
                  _files['tst.engine']
          ], function() {
            loadJasmine(window, [ new jasmine.TapReporter(),
                                  new jasmine.PhantomReporter({ onFinish: on_finish }) ],
                                [ specs_to_run || '*' ]);
          }
        );
      }

tst

Tests without efforts

MIT
Latest version published 4 months ago

Package Health Score

60 / 100
Full package analysis