mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
23 lines
393 B
JavaScript
23 lines
393 B
JavaScript
'use strict';
|
|
|
|
var test = require('tap').test,
|
|
path = require('path'),
|
|
mock = require('mock-fs'),
|
|
mockRepo = require('./mock_repo'),
|
|
findGit = require('../../../lib/git/find_git');
|
|
|
|
test('findGit', function (t) {
|
|
|
|
mock(mockRepo);
|
|
|
|
t.equal(
|
|
findGit(
|
|
'/my/repository/path/index.js'),
|
|
'/my/repository/path/.git', 'finds git path');
|
|
|
|
mock.restore();
|
|
|
|
t.end();
|
|
});
|
|
|