Skip to content

Commit

Permalink
fix imports for tests for tool-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Slava committed Aug 6, 2015
1 parent afee6b0 commit 3d2282d
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tools/tests/autoupdate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var selftest = require('../tool-testing/selftest.js');
var config = require('../meteor-services/config.js');
var catalogRemote = require('../catalog/catalog-remote.js');
var catalogRemote = require('../packaging/catalog/catalog-remote.js');
var buildmessage = require('../utils/buildmessage.js');
var Sandbox = selftest.Sandbox;

Expand Down
2 changes: 1 addition & 1 deletion tools/tests/old/test-bundler-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var files = require('../../fs/files.js');
var bundler = require('../../isobuild/bundler.js');
var isopackets = require('../../tool-env/isopackets.js');
var release = require('../../packaging/release.js');
var catalog = require('../../catalog/catalog.js');
var catalog = require('../../packaging/catalog/catalog.js');
var buildmessage = require('../../utils/buildmessage.js');
var projectContextModule = require('../../project-context.js');

Expand Down
2 changes: 1 addition & 1 deletion tools/tests/old/test-bundler-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var Fiber = require('fibers');
var files = require('../../fs/files.js');
var bundler = require('../../isobuild/bundler.js');
var release = require('../../packaging/release.js');
var catalog = require('../../catalog/catalog.js');
var catalog = require('../../packaging/catalog/catalog.js');
var buildmessage = require('../../utils/buildmessage.js');
var meteorNpm = require('../../isobuild/meteor-npm.js');
var isopackets = require('../../tool-env/isopackets.js');
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/old/test-bundler-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var assert = require('assert');
var bundler = require('../../isobuild/bundler.js');
var release = require('../../packaging/release.js');
var files = require('../../fs/files.js');
var catalog = require('../../catalog/catalog.js');
var catalog = require('../../packaging/catalog/catalog.js');
var buildmessage = require('../../utils/buildmessage.js');
var isopackets = require('../../tool-env/isopackets.js');
var projectContextModule = require('../../project-context.js');
Expand Down
4 changes: 2 additions & 2 deletions tools/tests/package-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var files = require('../fs/files.js');
var testUtils = require('../tool-testing/test-utils.js');
var utils = require('../utils/utils.js');
var packageClient = require('../packaging/package-client.js');
var catalog = require('../catalog/catalog.js');
var catalog = require('../packaging/catalog/catalog.js');

var DEFAULT_RELEASE_TRACK = catalog.DEFAULT_TRACK;

Expand Down Expand Up @@ -474,7 +474,7 @@ selftest.define("update server package data unit test",

var packageStorageFileDir = files.mkdtemp("update-server-package-data");

var rC = require('../catalog/catalog-remote.js');
var rC = require('../packaging/catalog/catalog-remote.js');
var config = require('../meteor-services/config.js');
var packageStorage = new rC.RemoteCatalog();
var packageStorageFile = config.getPackageStorage({
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/releases.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var selftest = require('../tool-testing/selftest.js');
var Sandbox = selftest.Sandbox;
var files = require('../fs/files.js');
var catalog = require('../catalog/catalog.js');
var catalog = require('../packaging/catalog/catalog.js');

var DEFAULT_RELEASE_TRACK = catalog.DEFAULT_TRACK;

Expand Down
2 changes: 1 addition & 1 deletion tools/tests/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var net = require('net');
var Future = require('fibers/future');
var _ = require('underscore');
var files = require('../fs/files.js');
var catalog = require('../catalog/catalog.js');
var catalog = require('../packaging/catalog/catalog.js');

var DEFAULT_RELEASE_TRACK = catalog.DEFAULT_TRACK;

Expand Down
2 changes: 1 addition & 1 deletion tools/tests/source-maps.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var selftest = require('../tool-testing/selftest.js');
var Sandbox = selftest.Sandbox;
var files = require('../fs/files.js');
var catalog = require('../catalog/catalog.js');
var catalog = require('../packaging/catalog/catalog.js');

function matchPath (text, doubleBS) {
if (process.platform === 'win32')
Expand Down
8 changes: 4 additions & 4 deletions tools/tool-testing/selftest.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,8 @@ _.extend(Sandbox.prototype, {
createApp: function (to, template, options) {
var self = this;
options = options || {};
files.cp_r(files.pathJoin(files.convertToStandardPath(__dirname), 'tests',
'apps', template),
files.cp_r(files.pathJoin(
files.convertToStandardPath(__dirname), '..', 'tests', 'apps', template),
files.pathJoin(self.cwd, to),
{ ignore: [/^local$/] });
// If the test isn't explicitly managing a mock warehouse, ensure that apps
Expand Down Expand Up @@ -652,7 +652,7 @@ _.extend(Sandbox.prototype, {
var self = this;
var packagePath = files.pathJoin(self.cwd, packageDir);
var templatePackagePath = files.pathJoin(
files.convertToStandardPath(__dirname), 'tests', 'packages', template);
files.convertToStandardPath(__dirname), '..', 'tests', 'packages', template);
files.cp_r(templatePackagePath, packagePath);

_.each(files.readdir(packagePath), function (file) {
Expand Down Expand Up @@ -1494,7 +1494,7 @@ var getAllTests = function () {

// Load all files in the 'tests' directory that end in .js. They
// are supposed to then call define() to register their tests.
var testdir = files.pathJoin(__dirname, 'tests');
var testdir = files.pathJoin(__dirname, '..', 'tests');
var filenames = files.readdir(testdir);
_.each(filenames, function (n) {
if (! n.match(/^[^.].*\.js$/)) // ends in '.js', doesn't start with '.'
Expand Down

0 comments on commit 3d2282d

Please sign in to comment.