UNPKG

apisurf

Version:

Analyze API surface changes between npm package versions to catch breaking changes

13 lines (12 loc) 441 B
import { describe, it, expect } from '@jest/globals'; import { getCurrentBranch } from './getCurrentBranch.js'; describe('getCurrentBranch', () => { it('should return a string', () => { const branch = getCurrentBranch(); expect(typeof branch).toBe('string'); }); it('should return non-empty string', () => { const branch = getCurrentBranch(); expect(branch.length).toBeGreaterThan(0); }); });