summaryrefslogtreecommitdiffstats
path: root/lib/plugins/__tests__/locateRootFolder.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins/__tests__/locateRootFolder.js')
-rw-r--r--lib/plugins/__tests__/locateRootFolder.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/plugins/__tests__/locateRootFolder.js b/lib/plugins/__tests__/locateRootFolder.js
new file mode 100644
index 0000000..bb414a3
--- /dev/null
+++ b/lib/plugins/__tests__/locateRootFolder.js
@@ -0,0 +1,10 @@
+var path = require('path');
+var locateRootFolder = require('../locateRootFolder');
+
+describe('locateRootFolder', function() {
+ it('should correctly resolve the node_modules for gitbook', function() {
+ expect(locateRootFolder()).toBe(
+ path.resolve(__dirname, '../../../')
+ );
+ });
+});