mirror of
https://github.com/documentationjs/documentation.git
synced 2025-12-08 18:23:43 +00:00
22 lines
367 B
JavaScript
22 lines
367 B
JavaScript
'use strict';
|
|
|
|
var test = require('tap').test,
|
|
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();
|
|
});
|
|
|