Skip to content

Commit 31f2026

Browse files
committed
v1.0.5
- Made tests, against #7, closing #7 - Support for latest meteor release
1 parent cd276c6 commit 31f2026

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.versions

Lines changed: 2 additions & 2 deletions

meteor-root-test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Tinytest.add('Meteor.rootPath (see console for path)', function(test){
2-
console.log('Meteor.rootPath is: ');
3-
console.log(Meteor.rootPath);
2+
console.log('Meteor.rootPath is: ' + Meteor.rootPath);
3+
test.isTrue(/\.meteor/.test(Meteor.rootPath));
4+
test.equal(Meteor.rootPath, process.cwd());
45
});
56

67
Tinytest.add('Meteor.absolutePath (see console for path)', function(test){
7-
console.log('Meteor.absolutePath is: ');
8-
console.log(Meteor.absolutePath);
9-
});
8+
console.log('Meteor.absolutePath is: ' + Meteor.absolutePath);
9+
test.equal(Meteor.absolutePath, process.cwd().split('/.meteor/')[0]);
10+
});

meteor-root.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
var path = Npm.require('path');
22
Meteor.rootPath = path.resolve('.');
3-
Meteor.absolutePath = Meteor.rootPath.split(path.sep + '.meteor')[0];
3+
Meteor.absolutePath = Meteor.rootPath.split(path.sep + '.meteor')[0];

package.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package.describe({
22
name: 'ostrio:meteor-root',
3-
version: '1.0.4',
4-
summary: '[Server] Get current path on your server, where is Meteor application is running',
3+
version: '1.0.5',
4+
summary: '[Server] Get current path on server, where is Meteor application is running',
55
git: 'https://github.com/VeliovGroup/Meteor-root',
66
documentation: 'README.md'
77
});

0 commit comments

Comments
 (0)