Only test constraint-solver and PVP on server

You can still include them on the client, but they don’t work in
Safari 4 and IE 8 because semver.js uses ES 5 methods including
String#trim, Array#map/filter/forEach, and possibly others.

This should fix any unit test failures in these packages.
This commit is contained in:
David Greenspan
2015-01-15 22:15:06 -05:00
parent 2443d83226
commit c71e495e10
2 changed files with 3 additions and 3 deletions

View File

@@ -25,8 +25,8 @@ Package.onTest(function (api) {
// data for big benchmarky tests
api.addFiles('test-data.js', ['server']);
api.addFiles('datatypes-tests.js', ['client', 'server']);
api.addFiles('catalog-cache-tests.js', ['client', 'server']);
api.addFiles('datatypes-tests.js', ['server']);
api.addFiles('catalog-cache-tests.js', ['server']);
api.addFiles('constraint-solver-tests.js', ['server']);
api.addFiles('benchmark-tests.js', ['server']);
api.addFiles('resolver-tests.js', ['server']);

View File

@@ -13,5 +13,5 @@ Package.onUse(function (api) {
Package.onTest(function (api) {
api.use('package-version-parser');
api.use(['tinytest']);
api.addFiles('package-version-parser-tests.js');
api.addFiles('package-version-parser-tests.js', 'server');
});