Added ecmascript and changed Npm.require to import

This commit is contained in:
Jesse Rosenberger
2016-04-25 11:25:48 +03:00
committed by Ben Newman
parent 32a8a707b8
commit ef2469a54d
2 changed files with 3 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
import lolex from 'lolex';
var newConnection = function (stream, options) {
// Some of these tests leave outstanding methods with no result yet
// returned. This should not block us from re-running tests when sources
@@ -96,7 +98,6 @@ Tinytest.add("livedata stub - receive data", function (test) {
});
Tinytest.add("livedata stub - buffering data", function (test) {
var lolex = Npm.require('lolex');
var stream = new StubStream();
// Install special setTimeout that lets us control it in tests, courtesy of sinon's lolex

View File

@@ -49,6 +49,7 @@ Package.onTest(function (api) {
api.use('mongo', ['client', 'server']);
api.use('test-helpers', ['client', 'server']);
api.use([
'ecmascript',
'underscore',
'tinytest',
'random',