mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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']);
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user