Files
meteor/packages/test-helpers/package.js
2015-02-09 13:23:24 -08:00

45 lines
1.5 KiB
JavaScript

Package.describe({
summary: "Utility functions for tests",
version: '1.0.4-winr.3'
});
Package.onUse(function (api) {
api.use(['underscore', 'tracker', 'ejson', 'tinytest', 'random']);
api.use(['jquery'], 'client');
// XXX for connection.js. Not sure this really belongs in
// test-helpers. It probably would be better off in livedata. But it's
// unclear how to put it in livedata so that it can both be used by
// other package tests and not included in the non-test bundle. One
// idea would be to make a new separate package 'ddp-test-helpers' or
// the like.
api.use('ddp');
api.export([
'pollUntil', 'try_all_permutations',
'SeededRandom', 'clickElement', 'blurElement',
'focusElement', 'simulateEvent', 'getStyleProperty', 'canonicalizeHtml',
'renderToDiv',
'withCallbackLogger', 'testAsyncMulti', 'simplePoll',
'makeTestConnection', 'DomUtils']);
api.addFiles('try_all_permutations.js');
api.addFiles('async_multi.js');
api.addFiles('event_simulation.js');
api.addFiles('seeded_random.js');
api.addFiles('canonicalize_html.js');
api.addFiles('render_div.js');
api.addFiles('current_style.js');
api.addFiles('callback_logger.js');
api.addFiles('domutils.js', 'client');
api.addFiles('connection.js', 'server');
});
Package.onTest(function (api) {
api.use('tinytest');
api.use(['test-helpers', 'underscore']);
api.addFiles('try_all_permutations_test.js', 'client');
api.addFiles('seeded_random_test.js');
});