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

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ [email protected]
2121
2222
2323
24-
local-test:ostrio:[email protected].4
24+
local-test:ostrio:[email protected].5
2525
2626
2727
@@ -30,7 +30,7 @@ [email protected]
3030
3131
3232
33-
33+
3434
3535
3636

meteor-root-test.js

+6-5
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

+1-1
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

+2-2
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)