mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* added @type/current-git-branch * fixed version * exported types and interface; updated tests * added two spaces
13 lines
348 B
TypeScript
13 lines
348 B
TypeScript
import getBranchName, { CurrentGitBranchOptions } from 'current-git-branch';
|
|
|
|
// test data
|
|
const emptyOptions: CurrentGitBranchOptions = {};
|
|
const filledOptions: CurrentGitBranchOptions = {altPath: '', branchOptions: ''};
|
|
|
|
// tests
|
|
getBranchName();
|
|
getBranchName(emptyOptions);
|
|
getBranchName(filledOptions);
|
|
getBranchName('');
|
|
getBranchName(['']);
|